|
|
@ -72,9 +72,9 @@ public class UserLoginServiceImpl extends ServiceImpl<UserLoginDao, UserEntity> |
|
|
|
if (count == 0) { |
|
|
|
if (count == 0) { |
|
|
|
ExceptionCast.cast(HrmsCode.PHNOE_ACCOUNT_NOT_EXIST); |
|
|
|
ExceptionCast.cast(HrmsCode.PHNOE_ACCOUNT_NOT_EXIST); |
|
|
|
} |
|
|
|
} |
|
|
|
//判断验证码是否匹配
|
|
|
|
//校验验证码是否正确
|
|
|
|
String verify = "123456"; |
|
|
|
Boolean isCodeTrue = SendUtil.validCode(user.getPhoneAccount(),user.getVerifyCode()); |
|
|
|
if(!verify.equals(user.getVerifyCode())){ |
|
|
|
if(!isCodeTrue){ |
|
|
|
ExceptionCast.cast(HrmsCode.VERIFY_CODE_ILLEGAL); |
|
|
|
ExceptionCast.cast(HrmsCode.VERIFY_CODE_ILLEGAL); |
|
|
|
} |
|
|
|
} |
|
|
|
return user; |
|
|
|
return user; |
|
|
|