Skip to content

Commit

Permalink
fix: login.SubmitCaptcha & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
icarus-ai committed Nov 15, 2024
1 parent be8bb77 commit db8d128
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cmd/gocq/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ import (

"github.com/Mrs4s/go-cqhttp/internal/download"

"github.com/LagrangeDev/LagrangeGo/utils"

"github.com/LagrangeDev/LagrangeGo/client/packets/wtlogin/qrcodestate"

"github.com/LagrangeDev/LagrangeGo/client"
"github.com/LagrangeDev/LagrangeGo/client/auth"
"github.com/LagrangeDev/LagrangeGo/client/packets/wtlogin/qrcodestate"
"github.com/LagrangeDev/LagrangeGo/utils"

"github.com/LagrangeDev/LagrangeGo/client"
"github.com/mattn/go-colorable"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -209,7 +207,7 @@ func loginResponseProcessor(res *client.LoginResponse) error {
readLine()
os.Exit(0)
}
res, err = cli.SubmitCaptcha(strings.Split(strings.Split(res.VerifyURL, "sid=")[1], "&")[0], ticket, randStr)
res, err = cli.SubmitCaptcha(ticket, randStr, strings.Split(strings.Split(res.VerifyURL, "sid=")[1], "&")[0])
continue
//case client.NeedCaptcha:
// log.Warnf("登录需要验证码.")
Expand Down

0 comments on commit db8d128

Please sign in to comment.