refactor: 验证码图片大小调整

This commit is contained in:
hxr
2023-09-12 22:45:19 +08:00
parent 9453600715
commit 51d02ffbb8

View File

@@ -85,7 +85,7 @@ public class AuthServiceImpl implements AuthService {
@Override
public CaptchaResult getCaptcha() {
// 获取验证码
GifCaptcha captcha = CaptchaUtil.createGifCaptcha(120, 36, 4); // 宽、高、位数
GifCaptcha captcha = CaptchaUtil.createGifCaptcha(120, 40, 4); // 宽、高、位数
String captchaCode = captcha.getCode(); // 验证码
String captchaBase64 = captcha.getImageBase64Data(); // 验证码图片Base64