feat: add geetest3 support
This commit is contained in:
parent
8e6b003486
commit
286e5aa6e5
25
tasks.go
25
tasks.go
@ -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"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user