|
@@ -385,7 +385,7 @@ public class SysAuthServiceImpl implements SysAuthService {
|
|
|
Integer phoneValidCode = sysUserDTO.getPhone_valid_code();
|
|
|
|
|
|
// 判断短信验证码是否正确
|
|
|
- String redisKey = "sms-forgotPassword-" + sysUserDTO.getPhone();
|
|
|
+ String redisKey = APPLICATION_NAME + "-sms-forgotPassword-" + sysUserDTO.getPhone();
|
|
|
Integer smsCode = redisUtil.getCacheObject(redisKey);
|
|
|
if ("false".equals(SMS_DEBUG) && (smsCode == null || !smsCode.equals(phoneValidCode))) {
|
|
|
throw new CustException("短信验证码错误");
|