feat:验证码(通用数字字母验证码)接口开发

This commit is contained in:
xiang
2025-09-04 21:31:21 +08:00
parent 5f3282164f
commit 95252f3775
2 changed files with 46 additions and 1 deletions

View File

@@ -23,6 +23,10 @@ public class CaptchaGenerateFactory {
if (Objects.isNull(type)) {
return strategies.get(CaptchaTypeEnum.NORMAL_CAPTCHA_IMAGE.getType());
}
return strategies.get(type);
ICaptchaService captchaService = strategies.get(type);
if (Objects.isNull(captchaService)) {
return strategies.get(CaptchaTypeEnum.NORMAL_CAPTCHA_IMAGE.getType());
}
return captchaService;
}
}