From 2c57c2ac30f9b325b33381ccc92e3e5f515f1178 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Fri, 30 Oct 2020 11:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=84=E7=90=86=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial/hrauth/service/impl/UserLoginServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;