A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
update captcha style
aichy1261c2162bdc27a
diff --git a/internal/service/action/captcha_service.go b/internal/service/action/captcha_service.goindex 5c243689..046d35ce 100644--- a/internal/service/action/captcha_service.go+++ b/internal/service/action/captcha_service.go@@ -115,13 +115,13 @@ func (cs *CaptchaService) ActionRecordDel(ctx context.Context, actionType string// GenerateCaptcha generate captchafunc (cs *CaptchaService) GenerateCaptcha(ctx context.Context) (key, captchaBase64 string, err error) {driverString := base64Captcha.DriverString{- Height: 40,- Width: 100,+ Height: 60,+ Width: 200,NoiseCount: 0,ShowLineOptions: 2 | 4,Length: 4,Source: "1234567890qwertyuioplkjhgfdsazxcvbnm",- BgColor: &color.RGBA{R: 247, G: 248, B: 249, A: 255},+ BgColor: &color.RGBA{R: 211, G: 211, B: 211, A: 0},Fonts: []string{"wqy-microhei.ttc"},}driver := driverString.ConvertFonts()