This commit is contained in:
gazebo
2019-08-27 15:05:09 +08:00
parent 11f4468846
commit 71495be821

View File

@@ -87,7 +87,7 @@ func RegisterUser(user *model.User, mobileVerifyCode string, inAuthInfo *auth2.A
mobileAuth, err2 := auth2.Login(auth2.AuthTypeMobile, user.Mobile, auth2.UserIDMobile, mobileVerifyCode)
if err = err2; err == nil {
if !mobileAuth.IsUserEmpty() {
return nil, jsonerr.New(mobileAuth, model.ErrCodeJsonActSkuConflict)
return nil, jsonerr.New(mobileAuth, model.ErrCodeJsonUserAlreadyExist)
}
user.Type = model.UserTypeConsumer
if inAuthInfo.AuthBindInfo.Type == dingding.AuthTypeStaff {