mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-07 06:04:34 +08:00
fix(application): 修复设置 CaptchaInterceptor 时对模板图片的处理
- 修复 setCaptchaInterceptor 方法,确保 captchaGenerator 正确设置拦截器 - 优化模板图片加载逻辑,提高验证码生成性能- 添加测试代码,验证 SLIDER 验证码生成耗时
This commit is contained in:
@@ -260,7 +260,8 @@ public class DefaultImageCaptchaApplication implements ImageCaptchaApplication {
|
||||
|
||||
@Override
|
||||
public void setCaptchaInterceptor(CaptchaInterceptor captchaInterceptor) {
|
||||
this.captchaGenerator = captchaGenerator;
|
||||
this.captchaInterceptor = captchaInterceptor;
|
||||
this.captchaGenerator.setInterceptor(captchaInterceptor);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user