From c4469d269bab585a02e02e7f28abd18064067fbd Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期三, 22 一月 2025 15:11:02 +0800 Subject: [PATCH] 1 --- ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java b/ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java index 4578a40..55a0671 100644 --- a/ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java +++ b/ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java @@ -109,13 +109,6 @@ { throw new CaptchaException("验证码错误"); } - String[] split = captcha.split(":"); - long l = Long.parseLong(split[2]); - long l1 = System.currentTimeMillis(); - // 判断是否大于两分钟 - if (l1 - l > 2 * 60 * 1000) { - throw new CaptchaException("验证码已失效"); - } redisService.deleteObject(verifyKey); if (!code.equalsIgnoreCase(captcha)) { -- Gitblit v1.7.1