精英手册改为锁单支付并发布0.2.2

- 精英手册兑换改为 createExchangeOrder 锁单后 payExchangeOrder 支付,不再查询商品状态与预兑
- 电竞手册保留直接兑换,标准模式重新取鉴权,激进模式复用鉴权
- csrfToken 优先复用 Cookie,校验失败自动刷新后重试一次
- 锁单支付按频控/通用退避表重试,临近过期不再重试
- 定时复校发现抢购已开始则不再改写触发时刻
- 升级 wails 至 v2.15.0
This commit is contained in:
yml2213
2026-09-30 20:35:44 +08:00
parent 911f967463
commit 1f76c12b48
12 changed files with 676 additions and 170 deletions
+8
View File
@@ -53,7 +53,15 @@ func (s *Scheduler) ScheduleRun(req types.SeckillRequest) (types.ScheduleResult,
s.scheduleMu.Lock()
s.replaceTimerLocked(&s.resyncSchedule, resyncRemain, func() {
if s.IsRunning() {
logger.LogEvent("定时", "info", "临近复校时抢购已开始,不再改写触发时刻")
return
}
newCalibration := s.calibrateDouyuTime("临近")
if s.IsRunning() {
logger.LogEvent("定时", "info", "临近复校完成时抢购已开始,保持当前任务")
return
}
newTriggerTime := targetTime.Add(-dynamicAdvance(newCalibration))
s.scheduleTimers(ap, targetTime, newTriggerTime, newCalibration, req.Attempts, req.DelayMs, true)
})