fix(sso): 修复Bean方法名与字段名冲突

Bean方法名从lineCaptcha改为captchaGenerator,避免与@Resource字段名冲突

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
liulujian 2026-04-15 16:04:09 +08:00
parent 0d6c3e353a
commit 5028ec4b8f

View File

@ -31,7 +31,7 @@ public class VerifyServiceImpl implements VerifyService {
private ICaptcha lineCaptcha;
@Bean
public ICaptcha lineCaptcha() {
public ICaptcha captchaGenerator() {
RandomGenerator randomGenerator = new RandomGenerator("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 4);
cn.hutool.captcha.CircleCaptcha captcha = CaptchaUtil.createCircleCaptcha(120, 40, 4, 20);
captcha.setGenerator(randomGenerator);