添加User.Avatar
This commit is contained in:
@@ -136,11 +136,14 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
|
||||
user.Type = model.UserTypeConsumer
|
||||
if inAuthInfo.AuthBindInfo.Type == dingding.AuthTypeStaff {
|
||||
user.Type |= model.UserTypeOperator
|
||||
} else {
|
||||
} else if user.Mobile != nil {
|
||||
user.Type |= model.UserTypeStoreBoss
|
||||
}
|
||||
createName += "," + inAuthInfo.GetAuthID()
|
||||
authType = inAuthInfo.GetAuthType()
|
||||
if user.Avatar == "" {
|
||||
user.Avatar = inAuthInfo.GetAvatar()
|
||||
}
|
||||
}
|
||||
if err = CreateUser(user, utils.LimitUTF8StringLen(createName, 32)); err == nil {
|
||||
userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP())
|
||||
|
||||
Reference in New Issue
Block a user