Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amazon_reports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
amazon_reports
Commits
ea63062f
Commit
ea63062f
authored
Sep 08, 2025
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(vendor_info): 更新特定国家/地区的供应商信息
- 对于美国 (US): -移除指定的供应商 ID - 添加新的供应商 ID - 对于日本 (JP): - 添加指定的供应商 ID
parent
ddeda35f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
advert_cost.py
app/vc/advert_cost.py
+12
-0
No files found.
app/vc/advert_cost.py
View file @
ea63062f
...
@@ -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'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment