Kaynağa Gözat

add cash to balance function

abiao 5 yıl önce
ebeveyn
işleme
9747280d38

+ 1 - 3
go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go

@@ -78,11 +78,9 @@ func (self *UserController) CheckLogin() {
 	wxUser := self.GetCurrentWxUser(useCache)
 	if wxUser != nil {
 		userInfo.WxUserId = wxUser.Id
-	}
-
-	if wxUser != nil {
 		userInfo.Rank = wxUser.Rank
 	}
+
 	self.Data["json"] = userInfo
 	self.ServeJSON()
 }