This commit is contained in:
Mrx
2026-02-28 12:00:07 +08:00
parent 38c4f65b5d
commit 1e2d5b199a

View File

@@ -22,8 +22,9 @@ func Verify(cfg Config, captchaVerifyParam string) error {
if os.Getenv("ENV") == "development" {
return nil
}
// captchaVerifyParam 为可选入参,未传入时默认验证通过(兼容未做防滑拼图的页面)
if captchaVerifyParam == "" {
return errors.Wrapf(xerr.NewErrMsg("图形验证码校验失败"), "empty captchaVerifyParam")
return nil
}
clientCfg := &openapi.Config{