feat: 新增激进抢购模式
- 添加 SeckillMode 类型(标准/激进) - 激进模式:第一轮完整校验,后续复用 CSRF 直接兑换 - 每轮开始时清空缓存,强制重新获取 CSRF - 设置面板添加模式切换 - 缓存 30 秒有效期,CSRF 错误时自动回退标准模式
This commit is contained in:
@@ -82,6 +82,7 @@ func defaultConfig() types.Config {
|
||||
Concurrency: constants.DefaultConcurrency,
|
||||
Attempts: constants.DefaultAttempts,
|
||||
RetryStages: defaultRetryStages(),
|
||||
SeckillMode: types.SeckillModeNormal,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user