|
@@ -119,11 +119,13 @@ func (this *WechatCommonController) WechatLoginByxzs() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- err = models.UpdateCygxUserRecordMobileByOpenId(user.UserId, user.Mobile, openId)
|
|
|
|
- if err != nil {
|
|
|
|
- br.Msg = "获取用户信息失败"
|
|
|
|
- br.ErrMsg = "更新openid绑定关系失败,Err:" + err.Error()
|
|
|
|
- return
|
|
|
|
|
|
+ if user != nil {
|
|
|
|
+ err = models.UpdateCygxUserRecordMobileByOpenId(user.UserId, user.Mobile, openId)
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "获取用户信息失败"
|
|
|
|
+ br.ErrMsg = "更新openid绑定关系失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
timeUnix := time.Now().Unix()
|
|
timeUnix := time.Now().Unix()
|