fix(card_sender): 增加代理切换重试次数

- 将重试代理的次数从3次增加到5次
- 保持原有请求配置和逻辑不变
- 提高请求成功率,增强稳定性
This commit is contained in:
danial
2025-12-14 22:11:28 +08:00
parent 48e589e95f
commit 468552ea86

View File

@@ -266,7 +266,7 @@ func (s *SendCardTaskTypeNuclear) channelOne(ctx context.Context, orderItem Orde
time.Sleep(time.Second*30 - time.Since(orderItem.CreateTime))
}
for range 3 {
for range 5 {
needChangeProxyId := utils.GenerateId()
webClient := resty.New().SetTimeout(10 * time.Second).SetHeaders(map[string]string{
"user-agent": useragent.GetUserAgentByPlatform(useragent.PlatformPhone),