feat(config): 将默认活动 SID 更新为最新活动 2277

- 后端默认值与测试:DefaultConfig 默认 SID 改为 2277(旧活动 2203 已停止返回商品),更新单元测试断言
- 前端默认值与平滑迁移:pickConfig 默认 SID 设为 2277,localStorage 自动将旧版 2203 迁移至 2277
- 验证:Go 单测与 Vite 前端打包干净通过
This commit is contained in:
yml2213
2026-10-17 18:58:38 +08:00
parent d53306076e
commit 23f964e768
3 changed files with 17 additions and 2 deletions
+3
View File
@@ -70,6 +70,9 @@ func TestParseAccountsRequiresExplicitSelection(t *testing.T) {
func TestDefaultConfigUsesWindowMode(t *testing.T) {
cfg := (&App{}).DefaultConfig()
if cfg.SID != 2277 {
t.Fatalf("SID=%d, want 2277(最新活动 SID)", cfg.SID)
}
if cfg.LeadMS != 0 {
t.Fatalf("LeadMS=%d, want 0(动态提前量)", cfg.LeadMS)
}