🐛修复了一些bug

This commit is contained in:
2024-05-13 09:15:27 +08:00
parent cad482fd25
commit eed038bf01
2 changed files with 4 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ func Captcha() captcha {
// @receiver captcha
// @param c
func (captcha) GenerateCaptcha(c *gin.Context) {
math := base64Captcha.DriverMath{Height: 60, Width: 240, Fonts: []string{"ApothecaryFont.ttf", "3Dumb.ttf"}}
math := base64Captcha.DriverMath{Height: 120, Width: 480, Fonts: []string{"ApothecaryFont.ttf", "3Dumb.ttf"}}
mathDriver := math.ConvertFonts()
capt := base64Captcha.NewCaptcha(mathDriver, component.CaptchaStore{})