refactor: 修改 MathGenerator 构造函数,添加新参数以支持更灵活的验证码生成
This commit is contained in:
@@ -32,7 +32,7 @@ public class CaptchaConfig {
|
||||
String codeType = captchaProperties.getCode().getType();
|
||||
int codeLength = captchaProperties.getCode().getLength();
|
||||
if ("math".equalsIgnoreCase(codeType)) {
|
||||
return new MathGenerator(codeLength);
|
||||
return new MathGenerator(codeLength, false);
|
||||
} else if ("random".equalsIgnoreCase(codeType)) {
|
||||
return new RandomGenerator(codeLength);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user