!149 优化代码格式

Merge pull request !149 from AprilWind/feat/dev-docs
This commit is contained in:
疯狂的狮子Li
2024-01-19 09:51:36 +00:00
committed by Gitee
35 changed files with 332 additions and 30 deletions

View File

@@ -64,6 +64,7 @@ public class CaptchaController {
AbstractCaptcha captcha = SpringUtils.getBean(captchaProperties.getCategory().getClazz());
captcha.setGenerator(codeGenerator);
captcha.createCode();
// 如果是数学验证码使用SpEL表达式处理验证码结果
String code = captcha.getCode();
if (isMath) {
ExpressionParser parser = new SpelExpressionParser();