Selaa lähdekoodia

修复提示语

tsurumure 4 kuukautta sitten
vanhempi
commit
5789dbfe9c

+ 2 - 2
src/main/java/com/backendsys/modules/system/service/impl/SysAuthServiceImpl.java

@@ -272,7 +272,7 @@ public class SysAuthServiceImpl implements SysAuthService {
         String redisKey = APPLICATION_NAME + "-sms-login" + "-" + phone;
         Integer smsCode = redisUtil.getCacheObject(redisKey);
         // 判断是否发送验证码
-        if ("false".equals(SMS_DEBUG) && smsCode == null) throw new CustException("请先发送验证码");
+        if ("false".equals(SMS_DEBUG) && smsCode == null) throw new CustException("请先发送短信验证码");
         // 判断短信验证码是否错误
         if ("false".equals(SMS_DEBUG) && !smsCode.equals(phoneValidCode)) loginFail("短信验证码错误", phone, true);
 
@@ -328,7 +328,7 @@ public class SysAuthServiceImpl implements SysAuthService {
         String redisKey = APPLICATION_NAME + "-sms-register" + "-" + phone;
         Integer smsCode = redisUtil.getCacheObject(redisKey);
         // 判断是否发送验证码
-        if ("false".equals(SMS_DEBUG) && smsCode == null) throw new CustException("请先发送验证码");
+        if ("false".equals(SMS_DEBUG) && smsCode == null) throw new CustException("请先发送短信验证码");
         // 判断短信验证码是否错误
         if ("false".equals(SMS_DEBUG) && !smsCode.equals(phoneValidCode)) loginFail("短信验证码错误", phone, true);