|
@@ -117,7 +117,7 @@ public class SysLoginService
|
|
|
if (StringUtils.isEmpty(credential)){
|
|
|
throw new CustomException("验证码不能为空");
|
|
|
}
|
|
|
- String cacheCode = (String) redisTemplate.opsForValue().get(RedisPrefixUtils.smsRedisPrefix("login", principal));
|
|
|
+ String cacheCode = (String) redisTemplate.opsForValue().get(RedisPrefixUtils.getSmsKeyPrefix("login", principal));
|
|
|
if (StringUtils.isEmpty(cacheCode)){
|
|
|
throw new CustomException("验证码已过期,请重新发送");
|
|
|
}else if (!credential.equals(cacheCode)){
|