Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
2mf8 committed Aug 4, 2023
1 parent 33d69b2 commit 6aa322b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,7 @@ func RequestToken(uin uint64) {
IsRequestTokenAgain = true
} else if strings.HasPrefix(gjson.GetBytes(response, "msg").String(), "QSign") {
log.Warn("QSign not initialized, unable to request_ Token, please submit the initialization package first.")
time.Sleep(time.Second * 3)
i := 0
for ;i < 3; {
RequestToken(uin)
i++
}
IsRequestTokenAgain = false
} else {
log.Info("请求 Token 成功")
log.Warn(string(response))
Expand Down

0 comments on commit 6aa322b

Please sign in to comment.