增加“极验-行为验”验证码集成支持

This commit is contained in:
GoEdgeLab
2023-11-29 17:00:06 +08:00
parent 18d9fbf409
commit c9c30adccf
3 changed files with 234 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ type CaptchaAction struct {
SlideUIFooter string `yaml:"slideUIFooter" json:"slideUIFooter"` // 页脚
SlideUIBody string `yaml:"slideUIBody" json:"slideUIBody"` // 内容轮廓
GeeTestConfig *firewallconfigs.GeeTestConfig `yaml:"geeTestConfig" json:"geeTestConfig"` // 极验设置 MUST be struct
Lang string `yaml:"lang" json:"lang"` // 语言zh-CN, en-US ...
AddToWhiteList bool `yaml:"addToWhiteList" json:"addToWhiteList"` // 是否加入到白名单
Scope string `yaml:"scope" json:"scope"`

File diff suppressed because one or more lines are too long

View File

@@ -202,6 +202,7 @@ func (this *WAFManager) ConvertWAF(policy *firewallconfigs.HTTPFirewallPolicy) (
UIFooter: policy.CaptchaOptions.UIFooter,
UIBody: policy.CaptchaOptions.UIBody,
Lang: policy.CaptchaOptions.Lang,
GeeTestConfig: &policy.CaptchaOptions.GeeTestConfig,
}
}