@@ -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()