feat:一键刷新与自动刷新覆盖绑定错误/使用超时/绑定超时
This commit is contained in:
@@ -175,8 +175,8 @@ func main() {
|
||||
log.Printf("[Rock] Token 检查失败: %v", err)
|
||||
}
|
||||
rockSvc.CheckStockAndAutoPurchase(context.Background())
|
||||
// 绑定错误自动刷新:内部会检查 auto_refresh_mismatch_enabled 开关,关闭时直接跳过。
|
||||
go rockSvc.RefreshMismatchTokens(context.Background())
|
||||
// 异常 Token 自动刷新:内部会检查 auto_refresh_mismatch_enabled 开关,关闭时直接跳过。
|
||||
go rockSvc.RefreshStaleTokens(context.Background())
|
||||
}
|
||||
run()
|
||||
ticker := time.NewTicker(5 * time.Minute)
|
||||
|
||||
Reference in New Issue
Block a user