This commit is contained in:
苏尹岚
2020-11-12 17:12:33 +08:00
parent bdb7c8a3f3
commit 01d9af671d
2 changed files with 4 additions and 4 deletions

View File

@@ -262,9 +262,9 @@ func (c *User2Controller) UpdateUserByMiniInfo() {
if userInfo.PurePhoneNumber != "" {
user.Mobile = utils.String2Pointer(userInfo.PurePhoneNumber)
}
if userInfo.NickName != "" {
user.Name = userInfo.NickName
}
// if userInfo.NickName != "" {
// user.Name = userInfo.NickName
// }
_, err = dao.UpdateEntity(dao.GetDB(), user)
if err != nil && dao.IsDuplicateError(err) {
if mobileAuth, err2 := auth2.LoginInternal(params.Ctx.Context, auth2.AuthTypeMobile, userInfo.PurePhoneNumber, auth2.UserIDMobile, auth2.InternalAuthSecret); err2 == nil {