fix: 上游限频全局冷却调整为 5 秒

- rockRateLimitCooldown 由 60 秒改为 5 秒,释放校验可快速重试
- 自动轮询仍保留各自的防抖与指数退避,避免持续触发 110001
- 同步更新注释与限频测试中的冷却设置
This commit is contained in:
2026-11-15 14:23:16 +08:00
parent 3ea93c0e0d
commit c506c9e2ed
3 changed files with 4 additions and 3 deletions
@@ -39,7 +39,7 @@ func (s *RockService) SetRedeemConfirmHook(hook func(ctx context.Context, order
// RunRedeemConfirmWorker 启动发货结果确认任务:每 20 秒扫描一次「发货确认中」标记。
//
// 频控保护:上游 110001 时全局冷却 60 秒,且每个 Token 使用指数退避,
// 频控保护:上游 110001 时全局冷却 5 秒,且每个 Token 使用指数退避,
// 避免把 0666.pro 的公开刷新接口打成持续频控。
func (s *RockService) RunRedeemConfirmWorker(ctx context.Context) {
lastCleanup := time.Now()