Ver Fonte

图形验证码改为4位

zouxuan há 3 anos atrás
pai
commit
674ab0a7cd

+ 1 - 1
mec-education/src/main/java/com/ym/mec/education/controller/SmsCodeController.java

@@ -82,7 +82,7 @@ public class SmsCodeController extends BaseController {
         if(StringUtils.isEmpty(phone)){
             throw new BizException("请输入手机号");
         }
-        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 5);
+        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 4);
         redisTemplate.opsForValue().set(MessageTypeEnum.KAPTCHA_SESSION_KEY + phone,specCaptcha.text(),3, TimeUnit.MINUTES);
         CaptchaUtil.out(specCaptcha, request, response);
     }

+ 1 - 1
mec-student/src/main/java/com/ym/mec/student/controller/SmsCodeController.java

@@ -77,7 +77,7 @@ public class SmsCodeController extends BaseController {
         if(StringUtils.isEmpty(phone)){
             throw new BizException("请输入手机号");
         }
-        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 5);
+        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 4);
         redisTemplate.opsForValue().set(MessageTypeEnum.KAPTCHA_SESSION_KEY + phone,specCaptcha.text(),3, TimeUnit.MINUTES);
         CaptchaUtil.out(specCaptcha, request, response);
     }

+ 1 - 1
mec-teacher/src/main/java/com/ym/mec/teacher/controller/SmsCodeController.java

@@ -77,7 +77,7 @@ public class SmsCodeController extends BaseController {
         if(StringUtils.isEmpty(phone)){
             throw new BizException("请输入手机号");
         }
-        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 5);
+        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 4);
         redisTemplate.opsForValue().set(MessageTypeEnum.KAPTCHA_SESSION_KEY + phone,specCaptcha.text(),3, TimeUnit.MINUTES);
         CaptchaUtil.out(specCaptcha, request, response);
     }

+ 1 - 1
mec-web/src/main/java/com/ym/mec/web/controller/SmsCodeController.java

@@ -77,7 +77,7 @@ public class SmsCodeController extends BaseController {
         if(StringUtils.isEmpty(phone)){
             throw new BizException("请输入手机号");
         }
-        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 5);
+        SpecCaptcha specCaptcha = new SpecCaptcha(125, 45, 4);
         redisTemplate.opsForValue().set(MessageTypeEnum.KAPTCHA_SESSION_KEY + phone,specCaptcha.text(),3, TimeUnit.MINUTES);
         CaptchaUtil.out(specCaptcha, request, response);
     }