feat: add geetest3 support

This commit is contained in:
sati.ac 2023-08-01 07:36:32 +03:00
parent 8e6b003486
commit 286e5aa6e5

@ -76,3 +76,28 @@ func (t *FunCaptchaTask) Result() any {
type FunCaptchaResult struct {
Token string `json:"token"`
}
type GeeTest3Task struct {
SiteKey string `json:"siteKey"`
PageUrl string `json:"pageUrl"`
Challenge string `json:"challenge"`
ApiServer *string `json:"apiServer,omitempty"`
Proxy *string `json:"proxy,omitempty"`
}
func (t *GeeTest3Task) serialize() task {
return task{
Type: "GeeTest3",
Data: t,
}
}
func (t *GeeTest3Task) Result() any {
return &GeeTest3Result{}
}
type GeeTest3Result struct {
Challenge string `json:"challenge"`
Validate string `json:"validate"`
Seccode string `json:"seccode"`
}