Skip to content

Commit 6aa322b

Browse files
committed
update
1 parent 33d69b2 commit 6aa322b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/bot/bot.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,7 @@ func RequestToken(uin uint64) {
337337
IsRequestTokenAgain = true
338338
} else if strings.HasPrefix(gjson.GetBytes(response, "msg").String(), "QSign") {
339339
log.Warn("QSign not initialized, unable to request_ Token, please submit the initialization package first.")
340-
time.Sleep(time.Second * 3)
341-
i := 0
342-
for ;i < 3; {
343-
RequestToken(uin)
344-
i++
345-
}
340+
IsRequestTokenAgain = false
346341
} else {
347342
log.Info("请求 Token 成功")
348343
log.Warn(string(response))

0 commit comments

Comments
 (0)