abiao лет назад: 3
Родитель
Сommit
15678abb6d

+ 4 - 0
go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go

@@ -207,6 +207,10 @@ func (self *UserController) Get() {
 		if user.TradePwd != "" {
 			user.HasTradePwd = 1
 		}
+		user.SetPwd = true
+		if user.Pwd == "" {
+			user.SetPwd = false
+		}
 		user.IdentityCardWithStar = user.GetCardNoWithStar()
 	}
 	if wxUser != nil {

+ 1 - 0
go/gopath/src/fohow.com/apps/models/user_model/user.go

@@ -51,6 +51,7 @@ type User struct {
 
 	//银行信息
 	HasBank     bool      `orm:"-"                  json:"has_bank"`
+	SetPwd      bool      `orm:"-"                  json:"set_pwd"`
 	BankName    string    `orm:"column(bank_name)"     json:"bank_name"`
 	BankAccount string    `orm:"column(bank_account)"     json:"bank_account"`
 	AccountName string    `orm:"column(account_name)"     json:"account_name"`