Fixing Image2text method.
parent
0dff7d0d6a
commit
62ad6dcb51
|
@ -17,7 +17,7 @@ type Cli struct {
|
||||||
type Req struct {
|
type Req struct {
|
||||||
Site string `json:"site"`
|
Site string `json:"site"`
|
||||||
Data string `json:"data"`
|
Data string `json:"data"`
|
||||||
Img []byte `json:"img"`
|
Img string `json:"img"`
|
||||||
To int `json:"to"`
|
To int `json:"to"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ func (c *Cli) Recaptchav2(site string, data string) (string, error) {
|
||||||
req := &Req{
|
req := &Req{
|
||||||
Site: site,
|
Site: site,
|
||||||
Data: data,
|
Data: data,
|
||||||
Img: nil,
|
Img: "",
|
||||||
To: 300,
|
To: 300,
|
||||||
}
|
}
|
||||||
err := c.HttpCli().JsonPost("/ipc/anticaptcha/recaptchav2", req, &ret)
|
err := c.HttpCli().JsonPost("/ipc/anticaptcha/recaptchav2", req, &ret)
|
||||||
|
@ -38,14 +38,14 @@ func (c *Cli) Hcaptcha(site string, data string) (string, error) {
|
||||||
req := &Req{
|
req := &Req{
|
||||||
Site: site,
|
Site: site,
|
||||||
Data: data,
|
Data: data,
|
||||||
Img: nil,
|
Img: "",
|
||||||
To: 300,
|
To: 300,
|
||||||
}
|
}
|
||||||
err := c.HttpCli().JsonPost("/ipc/anticaptcha/hcaptcha", req, &ret)
|
err := c.HttpCli().JsonPost("/ipc/anticaptcha/hcaptcha", req, &ret)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) Image2text(site string, data []byte) (string, error) {
|
func (c *Cli) Image2text(site string, data string) (string, error) {
|
||||||
ret := ""
|
ret := ""
|
||||||
req := &Req{
|
req := &Req{
|
||||||
Site: site,
|
Site: site,
|
||||||
|
|
Loading…
Reference in New Issue