Merge pull request '修复 bug' (#2) from test into master

Reviewed-on: https://git.oa00.com/jyy/recook-plus/pulls/2
master
杨赟 3 years ago
commit ccbe6770ac

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

Loading…
Cancel
Save