|
@@ -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);
|
|
|
|