Commit ea63062f authored by 邱阿朋's avatar 邱阿朋

feat(vendor_info): 更新特定国家/地区的供应商信息

- 对于美国 (US):
  -移除指定的供应商 ID - 添加新的供应商 ID
- 对于日本 (JP):
  - 添加指定的供应商 ID
parent ddeda35f
...@@ -69,6 +69,18 @@ class AdvertCost(AutoInterface): ...@@ -69,6 +69,18 @@ class AdvertCost(AutoInterface):
all_data = [] all_data = []
if self.country == "US":
# 要删除的 ID 列表
remove_store_ids = ["APTLHZWMS9DOG", "A2AZWYRRZS3OC0", "A1H6T3B2QQ0EPK"]
vendor_info = [item for item in vendor_info if item['id'] not in remove_store_ids]
# 要新增的 ID 列表
store_ids = ["A2VLKUSRNEY0D6", "A1OC20P16QN7BY", "A1YZS56TASXGM1", "A1EC618IVW7B1L"]
for store_id in store_ids:
vendor_info.append({'name': store_id, 'id': store_id})
if self.country == "JP":
vendor_info.append({'name': "A2JCA95F83WKJL", 'id': "A2JCA95F83WKJL"})
# 打印结果 # 打印结果
for info in vendor_info: for info in vendor_info:
name = info['name'] name = info['name']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment