fix(dlc): 更新暗影哥特、黑色上衣与浪漫天命的商品编码
- 同步上游 DLC (聚鑫源) 最新 GoodID 映射: - suit_shadow_gothic: 6a13aa55e3bce430aca29b01 - top_black_elite_trainer: 6a13aaeae3bce430aca29b03 - suit_romantic_destiny: 6a13ab21e3bce430aca29b04 - 更新 delivery_helpers 缺省兜底映射表与 sync_product_images 常量 - 更新 provider_test 单元测试断言与 docs/商品目录.md 文档 - 验证方式:go test 单元测试通过,go vet 校验通过
This commit is contained in:
@@ -53,14 +53,14 @@ var catalog = []catalogItem{
|
||||
{SKU: "frag_pink_sheep", Name: "破片手榴弹-糯粉咩咩", DLCGoodID: "682ef3c5a8f40c4234c59f51"},
|
||||
{SKU: "smoke_pink_sheep", Name: "烟雾弹-糯粉咩咩", DLCGoodID: "682ef3c5a8f40c4234c59f50"},
|
||||
{SKU: "pack_western_cowboy", Name: "西部牛仔大礼包", DLCGoodID: "682ef3c5a8f40c4234c59f4c"},
|
||||
{SKU: "suit_romantic_destiny", Name: "套装-浪漫天命", LewanProductID: "b1fff090-e389-4c6c-9c51-32751582239d", DLCGoodID: "682ef39ca8f40c4234c59f38"},
|
||||
{SKU: "suit_romantic_destiny", Name: "套装-浪漫天命", LewanProductID: "b1fff090-e389-4c6c-9c51-32751582239d", DLCGoodID: "6a13ab21e3bce430aca29b04"},
|
||||
{SKU: "suit_first_peach", Name: "套装-恋恋初桃", DLCGoodID: "682ef3c5a8f40c4234c59f48"},
|
||||
{SKU: "suit_pink_sheep", Name: "套装-糯粉咩咩", DLCGoodID: "682ef3c5a8f40c4234c59f4d"},
|
||||
{SKU: "suit_dual_fluffy", Name: "套装-双彩绵绵", DLCGoodID: "682ef3c5a8f40c4234c59f49"},
|
||||
{SKU: "bag_cute_bear", Name: "萌熊伴侣背包", DLCGoodID: "682ef3c5a8f40c4234c59f4a"},
|
||||
{SKU: "m416_hamster_gray", Name: "M416-仓鼠灰灰", DLCGoodID: "682ef3c5a8f40c4234c59f52"},
|
||||
{SKU: "top_black_elite_trainer", Name: "黑色高级特训官上衣", LewanProductID: "8621502c-e355-455c-9b74-a7e642a40cfe", DLCGoodID: "682ef39ca8f40c4234c59f37"},
|
||||
{SKU: "suit_shadow_gothic", Name: "套装-暗影哥特", LewanProductID: "8eed3610-7238-4b89-8010-6713268f7cd3", DLCGoodID: "682ef39ca8f40c4234c59f36"},
|
||||
{SKU: "top_black_elite_trainer", Name: "黑色高级特训官上衣", LewanProductID: "8621502c-e355-455c-9b74-a7e642a40cfe", DLCGoodID: "6a13aaeae3bce430aca29b03"},
|
||||
{SKU: "suit_shadow_gothic", Name: "套装-暗影哥特", LewanProductID: "8eed3610-7238-4b89-8010-6713268f7cd3", DLCGoodID: "6a13aa55e3bce430aca29b01"},
|
||||
{SKU: "suit_alan_walker", Name: "套装-Alan Walker", DLCGoodID: "682ef3c5a8f40c4234c59f47"},
|
||||
}
|
||||
|
||||
|
||||
@@ -82,14 +82,14 @@ func deliveryGoodID(channel, sku string) string {
|
||||
}
|
||||
return map[string]string{
|
||||
"suit_alan_walker": "682ef3c5a8f40c4234c59f47",
|
||||
"suit_shadow_gothic": "682ef39ca8f40c4234c59f36",
|
||||
"top_black_elite_trainer": "682ef39ca8f40c4234c59f37",
|
||||
"suit_shadow_gothic": "6a13aa55e3bce430aca29b01",
|
||||
"top_black_elite_trainer": "6a13aaeae3bce430aca29b03",
|
||||
"m416_hamster_gray": "682ef3c5a8f40c4234c59f52",
|
||||
"bag_cute_bear": "682ef3c5a8f40c4234c59f4a",
|
||||
"suit_dual_fluffy": "682ef3c5a8f40c4234c59f49",
|
||||
"suit_pink_sheep": "682ef3c5a8f40c4234c59f4d",
|
||||
"suit_first_peach": "682ef3c5a8f40c4234c59f48",
|
||||
"suit_romantic_destiny": "682ef39ca8f40c4234c59f38",
|
||||
"suit_romantic_destiny": "6a13ab21e3bce430aca29b04",
|
||||
"pack_western_cowboy": "682ef3c5a8f40c4234c59f4c",
|
||||
"smoke_pink_sheep": "682ef3c5a8f40c4234c59f50",
|
||||
"frag_pink_sheep": "682ef3c5a8f40c4234c59f51",
|
||||
|
||||
@@ -52,7 +52,7 @@ func TestParseProductRoutingConfig(t *testing.T) {
|
||||
if cfg5.RoutingMode != RoutingModePriority {
|
||||
t.Fatalf("expected priority for dual-capable legacy config, got %s", cfg5.RoutingMode)
|
||||
}
|
||||
if cfg5.DLCGoodID != "682ef39ca8f40c4234c59f38" {
|
||||
if cfg5.DLCGoodID != "6a13ab21e3bce430aca29b04" {
|
||||
t.Fatalf("expected builtin DLC good id, got %s", cfg5.DLCGoodID)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user