|
@@ -120,7 +120,6 @@ public class CaptchaController {
|
|
captcha.setGenerator(codeGenerator);
|
|
captcha.setGenerator(codeGenerator);
|
|
captcha.createCode();
|
|
captcha.createCode();
|
|
String code = captcha.getCode();
|
|
String code = captcha.getCode();
|
|
- System.out.println(code);
|
|
|
|
if (isMath) {
|
|
if (isMath) {
|
|
ExpressionParser parser = new SpelExpressionParser();
|
|
ExpressionParser parser = new SpelExpressionParser();
|
|
Expression exp = parser.parseExpression(StringUtils.remove(code, "="));
|
|
Expression exp = parser.parseExpression(StringUtils.remove(code, "="));
|
|
@@ -129,7 +128,6 @@ public class CaptchaController {
|
|
RedisUtils.setCacheObject(verifyKey, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION));
|
|
RedisUtils.setCacheObject(verifyKey, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION));
|
|
ajax.put("uuid", uuid);
|
|
ajax.put("uuid", uuid);
|
|
ajax.put("img", captcha.getImageBase64());
|
|
ajax.put("img", captcha.getImageBase64());
|
|
- System.out.println(code);
|
|
|
|
return R.ok(ajax);
|
|
return R.ok(ajax);
|
|
}
|
|
}
|
|
|
|
|