feat: 更新依赖。

This commit is contained in:
lanyulei
2024-11-19 00:34:16 +08:00
parent 8ee0431c48
commit a463c8f81c
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ import (
*/
func GenerateCaptchaHandler(c *gin.Context) {
id, b64s, err := captcha.DriverDigitFunc()
id, b64s, _, err := captcha.DriverDigitFunc()
if err != nil {
app.Error(c, -1, err, fmt.Sprintf("验证码获取失败, %v", err.Error()))
return

View File

@@ -19,7 +19,7 @@ type configJsonBody struct {
DriverDigit *base64Captcha.DriverDigit
}
func DriverDigitFunc() (id, b64s string, err error) {
func DriverDigitFunc() (id, b64s, answer string, err error) {
e := configJsonBody{}
e.Id = uuid.New().String()
e.DriverDigit = base64Captcha.NewDriverDigit(80, 240, 4, 0.7, 80)