|
@@ -241,8 +241,13 @@ func WxLogin(code, openId, unionId string, wxUserInfo *WxUserInfo) (token string
|
|
|
err = wxUserErr
|
|
|
return
|
|
|
}
|
|
|
- if wxUserInfo != nil && wxUserInfo.Nickname != "" {
|
|
|
- models.ModifyUserRecordInfo(openId, wxUserInfo.Nickname, wxUserInfo.Headimgurl, wxUserInfo.City, wxUserInfo.Province, wxUserInfo.Country, wxUserInfo.SessionKey, wxUserInfo.Sex, userId)
|
|
|
+ fmt.Println("wxUserInfo", wxUserInfo)
|
|
|
+ fmt.Println("wxUserInfo.Nickname", wxUserInfo.Nickname)
|
|
|
+ fmt.Println("SessionKey", wxUserInfo.SessionKey)
|
|
|
+ if wxUserInfo != nil {
|
|
|
+ fmt.Println("ModifyUserRecordSessionKey")
|
|
|
+ err = models.ModifyUserRecordSessionKey(openId, wxUserInfo.SessionKey)
|
|
|
+ fmt.Println("ModifyUserRecordSessionKey Err", err)
|
|
|
}
|
|
|
//如果已经登录注册绑定的情况下
|
|
|
if wxUser != nil && wxUserErr == nil {
|