lyhzzz 2 vuotta sitten
vanhempi
commit
ef044717c7

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

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