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