审计代码优化

This commit is contained in:
liang.chao 2024-08-30 15:40:24 +08:00
parent 9bb81cbc6f
commit 3f1f6c1056
1 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,8 @@ public class TokenController {
String captcha = redisService.getCacheObject(CacheConstants.CAPTCHA_CODE_KEY + uuid).toString();
if (StringUtils.isBlank(captcha)) {
// 删除验证码缓存
redisService.deleteObject(CacheConstants.CAPTCHA_CODE_KEY + uuid);
return R.fail("验证码超时,请重新刷新");
}