Fixing recatcha-v2 and image2text methods.

master
Pedro de Oliveira Guedes 2021-12-28 12:51:01 -03:00
parent d5c986df8e
commit 13626dcde9
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ type Cli struct {
type Req struct {
Site string `json:"site"`
Data string `json:"data"`
Img []byte `json:"img"`
Img string `json:"img"`
To int `json:"to"`
}
@ -26,14 +26,14 @@ func (c *Cli) Recaptchav2(site string, data string) (string, error) {
req := &Req{
Site: site,
Data: data,
Img: nil,
Img: "",
To: 300,
}
err := c.HttpCli().JsonPost("/ipc/anticaptcha/recaptchav2", req, &ret)
return ret, err
}
func (c *Cli) Image2text(site string, data []byte) (string, error) {
func (c *Cli) Image2text(site string, data string) (string, error) {
ret := ""
req := &Req{
Site: site,