chore: 调整403重试次数跟间隔

This commit is contained in:
shaw
2025-12-26 14:19:57 +08:00
parent d9e6cfc44d
commit b3463769dc

View File

@@ -368,8 +368,8 @@ func (s *GatewayService) getOAuthToken(ctx context.Context, account *model.Accou
// 重试相关常量
const (
maxRetries = 5 // 最大重试次数
retryDelay = 6 * time.Second // 重试等待时间
maxRetries = 10 // 最大重试次数
retryDelay = 3 * time.Second // 重试等待时间
)
// shouldRetryUpstreamError 判断是否应该重试上游错误