fix(proxy): 完善备用补提与失败组暂停
- 备用不足不再触发活动代理池重建\n- 白名单 verify 限频错误保留消息并允许重试\n- 严格模式失败组暂停请求并持续补提取\n- 增加备用代理健康探测与运行门禁校验
This commit is contained in:
@@ -28,7 +28,7 @@ func (a *App) StartSeckill(accountProducts map[string]string) types.MessageResul
|
||||
if err := a.scheduler.PrepareProxyGroups(accountProducts); err != nil {
|
||||
return types.MessageResult{Error: "代理准备失败: " + err.Error()}
|
||||
}
|
||||
if ok, reason := a.scheduler.ProxyRunGate(); !ok {
|
||||
if ok, reason := a.scheduler.ProxyRunGateFor(accountProducts); !ok {
|
||||
return types.MessageResult{Error: "严格代理模式未就绪: " + reason}
|
||||
}
|
||||
if !a.scheduler.TryStartRun() {
|
||||
@@ -84,7 +84,7 @@ func (a *App) startXiaodianSeckill(req types.FixedSeckillRequest, message string
|
||||
if err := a.scheduler.PrepareProxyGroups(req.AccountProducts); err != nil {
|
||||
return types.MessageResult{Error: "代理准备失败: " + err.Error()}
|
||||
}
|
||||
if ok, reason := a.scheduler.ProxyRunGate(); !ok {
|
||||
if ok, reason := a.scheduler.ProxyRunGateFor(req.AccountProducts); !ok {
|
||||
return types.MessageResult{Error: "严格代理模式未就绪: " + reason}
|
||||
}
|
||||
if !a.scheduler.TryStartRun() {
|
||||
|
||||
Reference in New Issue
Block a user