diff --git a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java index a5bad024..909a0e91 100644 --- a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java +++ b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java @@ -72,9 +72,9 @@ public class UserLoginServiceImpl extends ServiceImpl if (count == 0) { ExceptionCast.cast(HrmsCode.PHNOE_ACCOUNT_NOT_EXIST); } - //判断验证码是否匹配 - String verify = "123456"; - if(!verify.equals(user.getVerifyCode())){ + //校验验证码是否正确 + Boolean isCodeTrue = SendUtil.validCode(user.getPhoneAccount(),user.getVerifyCode()); + if(!isCodeTrue){ ExceptionCast.cast(HrmsCode.VERIFY_CODE_ILLEGAL); } return user;