This commit is contained in:
eson 2023-09-06 16:21:21 +08:00
parent 310c3af9dc
commit dc7b590977

View File

@ -128,7 +128,7 @@ func (u *FsUserModel) RegisterByGoogleOAuth(ctx context.Context, token *auth.Reg
// 如果已经存在,把谷歌id 加入到用户信息里
user.GoogleId = &googleId
return tx.Model(&FsUser{}).Where("id = ?", user.Id).Update("google_id", user).Error
return tx.Model(&FsUser{}).Where("id = ?", user.Id).Update("google_id", googleId).Error
})
if err != nil {