|
@@ -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);
|
|
|
}
|