|
|
@@ -228,6 +228,25 @@ func (self *PermitController) SaveWxuserInfo() {
|
|
|
Result bool `json:"result"`
|
|
|
Head string `json:"head"`
|
|
|
}
|
|
|
+
|
|
|
+ //更新用户信息
|
|
|
+ wxUser.Nickname = info.NickName
|
|
|
+ wxUser.Sex = info.Gender
|
|
|
+ wxUser.City = info.City
|
|
|
+ wxUser.Province = info.Province
|
|
|
+ wxUser.Country = info.Country
|
|
|
+ wxUser.Save()
|
|
|
+
|
|
|
+ user := user_model.GetWxUserById(wxUser.UserId, true)
|
|
|
+ if user != nil {
|
|
|
+ user.Nickname = wxUser.Nickname
|
|
|
+ user.Country = wxUser.Country
|
|
|
+ user.Province = wxUser.Province
|
|
|
+ user.City = wxUser.City
|
|
|
+ user.Sex = wxUser.Sex
|
|
|
+ user.Save()
|
|
|
+ }
|
|
|
+
|
|
|
headImag := tool.GetCdnFullImgUrl(wxUser.Head)
|
|
|
//beego.BeeLogger.Info("save_wx_user_info err: %v ", wxUser)
|
|
|
|