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
9e9ce32b
Commit
9e9ce32b
authored
Jul 24, 2025
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(advert_cost): 支持日本站点数据处理
-增加对日本站点商品数据的处理逻辑 - 更新数据推送格式,增加 country 字段 -优化代码结构,提高可读性和可维护性
parent
9dc40213
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
advert_cost.py
app/vc/advert_cost.py
+8
-1
build.bat
build.bat
+2
-2
No files found.
app/vc/advert_cost.py
View file @
9e9ce32b
...
...
@@ -118,10 +118,17 @@ class AdvertCost(AutoInterface):
for
_
,
item_row
in
data
.
iterrows
():
asin
=
item_row
.
get
(
'Products'
,
''
)
.
split
(
"-"
)[
0
]
spend
=
item_row
.
get
(
'Spend(USD)'
,
''
),
# 金额
if
self
.
country
==
'JP'
:
asin
=
item_row
.
get
(
'商品'
,
''
)
.
split
(
"-"
)[
0
]
spend
=
item_row
.
get
(
'花费(JPY)'
,
''
),
# 金额
push_data
=
{
'asin'
:
asin
,
# ASIN
'spend'
:
item_row
.
get
(
'Spend(USD)'
,
''
)
,
# 金额
'spend'
:
spend
,
# 金额
'timestamp'
:
int
(
datetime
.
now
()
.
timestamp
()),
'country'
:
self
.
country
,
}
# 推送数据
rabbit
.
send_message
(
push_data
)
...
...
build.bat
View file @
9e9ce32b
...
...
@@ -15,9 +15,9 @@ REM 安装依赖
uv pip install -i https://mirrors.cloud.tencent.com/pypi/simple -r requirements.txt
REM 使用版本号生成 exe 文件
pyinstaller -F -n tool_cmd_%VERSION%.exe tool_cmd.py
REM
pyinstaller -F -n tool_cmd_%VERSION%.exe tool_cmd.py
pyinstaller -F -n tool_gui_%VERSION%.exe --noconsole tool_gui.py
pyinstaller -F -n easy_gui.exe --noconsole easy_gui.py
REM
pyinstaller -F -n easy_gui.exe --noconsole easy_gui.py
pyinstaller -F -n super_gui_%VERSION%.exe --noconsole super_gui.py
REM 删除生成的 .spec 文件
...
...
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