2captcha / 2captcha-go

Golang Module for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, funcaptcha, geetest and solve any other captchas.
https://2captcha.com
MIT License
108 stars 42 forks source link

strconv.FormatInt base is 64? really? #12

Closed zplzpl closed 1 year ago

zplzpl commented 1 year ago

panic info:

    panic: strconv: illegal AppendInt/FormatInt base

code

    if c.Rows != 0 {
        req.Params["recaptcharows"] = strconv.FormatInt(int64(c.Rows), 64)
    }
    if c.Cols != 0 {
        req.Params["recaptchacols"] = strconv.FormatInt(int64(c.Cols), 64)
    }
    if c.PreviousId != 0 {
        req.Params["previousID"] = strconv.FormatInt(int64(c.PreviousId), 64)
    }