Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Jun 21, 2022
1 parent 2a0baba commit 177ba9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gocq/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func sliderCaptchaProcessor(u string) string {
id := utils.RandomString(8)
log.Warnf("请前往该地址验证 -> %v", strings.ReplaceAll(u, "https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?", fmt.Sprintf("https://captcha.go-cqhttp.org/captcha?id=%v&", id)))
start := time.Now()
for time.Now().Sub(start).Minutes() < 2 {
for time.Since(start).Minutes() < 2 {
time.Sleep(time.Second)
data, err := global.GetBytes("https://captcha.go-cqhttp.org/captcha/ticket?id=" + id)
if err != nil {
Expand Down

0 comments on commit 177ba9d

Please sign in to comment.