|
@ -157,11 +157,11 @@ public class PublicUserLoginServiceImpl implements PublicUserLoginService { |
|
|
CustomerUserResultDTO ResultDTO = Result.getData(); |
|
|
CustomerUserResultDTO ResultDTO = Result.getData(); |
|
|
//登陆
|
|
|
//登陆
|
|
|
if (formDTO.getIsLogon() && null == ResultDTO.getPaUserResult()) { |
|
|
if (formDTO.getIsLogon() && null == ResultDTO.getPaUserResult()) { |
|
|
throw new RenException(PublicUserLoginConstant.LOGON_EXCEPTION); |
|
|
throw new RenException(EpmetErrorCode.PUBLIC_NOT_EXISTS.getCode()); |
|
|
} |
|
|
} |
|
|
//注册
|
|
|
//注册
|
|
|
if (!formDTO.getIsLogon() && null != ResultDTO.getPaUserResult()) { |
|
|
if (!formDTO.getIsLogon() && null != ResultDTO.getPaUserResult()) { |
|
|
throw new RenException(PublicUserLoginConstant.ZHU_CE_EXCEPTION); |
|
|
throw new RenException(EpmetErrorCode.MOBILE_USED.getCode()); |
|
|
} |
|
|
} |
|
|
//3、发送短信验证码
|
|
|
//3、发送短信验证码
|
|
|
SendVerificationCodeFormDTO sendVerificationCodeFormDTO = new SendVerificationCodeFormDTO(); |
|
|
SendVerificationCodeFormDTO sendVerificationCodeFormDTO = new SendVerificationCodeFormDTO(); |
|
@ -197,7 +197,7 @@ public class PublicUserLoginServiceImpl implements PublicUserLoginService { |
|
|
//2.用户不存在时不允许登陆
|
|
|
//2.用户不存在时不允许登陆
|
|
|
PaUserDTO userDTO = resultDTO.getPaUserResult(); |
|
|
PaUserDTO userDTO = resultDTO.getPaUserResult(); |
|
|
if (null == userDTO || StringUtils.isBlank(userDTO.getId())) { |
|
|
if (null == userDTO || StringUtils.isBlank(userDTO.getId())) { |
|
|
throw new RenException(PublicUserLoginConstant.LOGON_EXCEPTION); |
|
|
throw new RenException(EpmetErrorCode.PUBLIC_NOT_EXISTS.getCode()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//3.校验验证码是否正确
|
|
|
//3.校验验证码是否正确
|
|
|