Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
mojocn committed Mar 30, 2023
1 parent 9036526 commit 19b5aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func generateCaptchaHandler(w http.ResponseWriter, r *http.Request) {
driver = param.DriverDigit
}
c := base64Captcha.NewCaptcha(driver, store)
id, b64s, err := c.Generate()
id, b64s,_, err := c.Generate()
body := map[string]interface{}{"code": 1, "data": b64s, "captchaId": id, "msg": "success"}
if err != nil {
body = map[string]interface{}{"code": 0, "msg": err.Error()}
Expand Down

0 comments on commit 19b5aaf

Please sign in to comment.