Skip to content

Commit

Permalink
feat: 更新依赖。
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyulei committed Nov 18, 2024
1 parent 8ee0431 commit a463c8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/system/captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/captcha/captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a463c8f

Please sign in to comment.