修复库存监控提前停止并发布0.2.0

This commit is contained in:
yml2213
2026-08-09 19:37:30 +08:00
parent 02d38d9ede
commit 266f4a3da1
13 changed files with 239 additions and 31 deletions
+2
View File
@@ -149,6 +149,8 @@ type FixedSeckillRequest struct {
AccountProducts map[string]string `json:"accountProducts"`
Attempts int `json:"attempts"`
DelayMs int `json:"delayMs"`
// ReportSessionID 用于把库存监控拆分的多次抢购合并到同一份报告。
ReportSessionID string `json:"reportSessionId,omitempty"`
}
// APIResponse 斗鱼 API 通用响应。
+1
View File
@@ -5,6 +5,7 @@ import "time"
// XiaodianRunReport 保存一次和平小店抢购的可导出快照,不包含 Cookie 等敏感凭据。
type XiaodianRunReport struct {
ReportID string `json:"reportId"`
SessionID string `json:"sessionId,omitempty"`
StartedAt time.Time `json:"startedAt"`
FinishedAt time.Time `json:"finishedAt"`
Stopped bool `json:"stopped"`