|
|
|
@ -232,7 +232,7 @@ func LoginByWeChat(c *gin.Context) {
|
|
|
|
|
if info.ID > 0 && len(info.InvitationNo) > 0 && len(info.Mobile) > 0 {
|
|
|
|
|
// todo 感觉可以不确定wxAppOpenId
|
|
|
|
|
if len(info.WxAppOpenId) == 0 {
|
|
|
|
|
err = DB.Model(&info).Update(user.Information{WxMiniOpenId: access.Openid}).Error
|
|
|
|
|
err = DB.Model(&info).Update(user.Information{WxAppOpenId: access.Openid}).Error
|
|
|
|
|
if err != nil {
|
|
|
|
|
back.Err(c, err.Error())
|
|
|
|
|
return
|
|
|
|
|