Merge branch 'master' into deploy

pull/789/head
Zheng Jie 2022-07-12 21:17:51 +08:00
commit 72148f1f77
1 changed files with 25 additions and 27 deletions

View File

@ -68,7 +68,6 @@ public class LoginProperties {
*/
private Captcha switchCaptcha(LoginCode loginCode) {
Captcha captcha;
synchronized (this) {
switch (loginCode.getCodeType()) {
case ARITHMETIC:
// 算术类型 https://gitee.com/whvse/EasyCaptcha
@ -95,7 +94,6 @@ public class LoginProperties {
default:
throw new BadConfigurationException("验证码配置信息错误!正确配置查看 LoginCodeEnum ");
}
}
if(StringUtils.isNotBlank(loginCode.getFontName())){
captcha.setFont(new Font(loginCode.getFontName(), Font.PLAIN, loginCode.getFontSize()));
}