feat:一键刷新与自动刷新覆盖绑定错误/使用超时/绑定超时

This commit is contained in:
2026-11-08 18:56:54 +08:00
parent 51dcb9de5a
commit 61d2aa47ea
9 changed files with 303 additions and 153 deletions
+2 -2
View File
@@ -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)