From 93feb4779e05107c23a88adb141d64d667aa3e95 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Sat, 17 Oct 2020 18:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E4=B8=BA4=E4=BD=8D=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/captcha/captcha.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/captcha/captcha.go b/tools/captcha/captcha.go index 1ce36935..8562e044 100644 --- a/tools/captcha/captcha.go +++ b/tools/captcha/captcha.go @@ -33,7 +33,7 @@ func DriverStringFunc() (id, b64s string, err error) { func DriverDigitFunc() (id, b64s string, err error) { e := configJsonBody{} e.Id = uuid.New().String() - e.DriverDigit = base64Captcha.DefaultDriverDigit + e.DriverDigit = base64Captcha.NewDriverDigit(80, 240, 4, 0.7, 80) driver := e.DriverDigit cap := base64Captcha.NewCaptcha(driver, store) return cap.Generate()