From 1e79b096fe0e72ca00ee1ef6e89c7c3254f5aede Mon Sep 17 00:00:00 2001 From: ssongliu Date: Fri, 24 Feb 2023 18:50:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=85=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/captcha/captcha.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils/captcha/captcha.go b/backend/utils/captcha/captcha.go index 28ac10f64..19825f010 100644 --- a/backend/utils/captcha/captcha.go +++ b/backend/utils/captcha/captcha.go @@ -31,7 +31,7 @@ func CreateCaptcha() (*dto.CaptchaResponse, error) { driverString.Height = 50 driverString.NoiseCount = 0 driverString.Length = 4 - driverString.Fonts = []string{"wqy-microhei.ttc"} + driverString.Fonts = []string{"RitaSmith.ttf", "actionj.ttf", "chromohv.ttf"} driver := driverString.ConvertFonts() c := base64Captcha.NewCaptcha(driver, store) id, b64s, err := c.Generate()