- jxcontext.New

This commit is contained in:
gazebo
2019-03-05 11:18:30 +08:00
parent 9179ad127d
commit a8e92dd92e
5 changed files with 58 additions and 12 deletions

View File

@@ -67,7 +67,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.IUser != nil {
if !mobileAuth.IsUserEmpty() {
return nil, model.ErrCodeUserAlreadyExist, auth2.ErrUserMobileAlreadyExist
}
dao.WrapAddIDCULDEntity(user, "RegisterUser")