lyhzzz 1 year ago
parent
commit
701e06aa03

+ 1 - 1
src/main/java/com/fdkankan/fusion/controller/NoLoginController.java

@@ -39,7 +39,7 @@ public class NoLoginController {
         String id = request.getSession().getId();
         try {
             LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 100,4,60);
-            redisUtil.set(String.format(RedisKeyUtil.loginAuthCode,lineCaptcha.getCode()),lineCaptcha.getCode(),30);
+            redisUtil.set(String.format(RedisKeyUtil.loginAuthCode,lineCaptcha.getCode()),lineCaptcha.getCode(),60*5);
             lineCaptcha.write(response.getOutputStream());
             response.getOutputStream().close();
         } catch (Exception e){