fix(card_sender): 增加代理切换重试次数
- 将重试代理的次数从3次增加到5次 - 保持原有请求配置和逻辑不变 - 提高请求成功率,增强稳定性
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user