From 8aad2d096e47584e98c0f1350c9225b4df354291 Mon Sep 17 00:00:00 2001 From: imcode Date: Wed, 24 Jan 2024 13:10:03 +0800 Subject: [PATCH] fix ProcessCaptcha bug --- helper/captcha.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/captcha.go b/helper/captcha.go index 8bf76b64..d0e09388 100644 --- a/helper/captcha.go +++ b/helper/captcha.go @@ -113,7 +113,7 @@ func ProcessCaptcha(process *process.Process) interface{} { option := CaptchaOption{ Width: any.Of(process.ArgsURLValue(0, "width", "240")).CInt(), Height: any.Of(process.ArgsURLValue(0, "height", "80")).CInt(), - Length: any.Of(process.ArgsURLValue(0, "height", "6")).CInt(), + Length: any.Of(process.ArgsURLValue(0, "length", "6")).CInt(), Type: process.ArgsURLValue(0, "type", "math"), Background: process.ArgsURLValue(0, "background", "#FFFFFF"), Lang: process.ArgsURLValue(0, "lang", "zh"),