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
a8ee314b
Commit
a8ee314b
authored
Jan 06, 2025
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(spa_search): 修复文件下载路径问题
- 在生成报告文件临时目录路径时,添加了当前工作目录作为前缀 - 这样可以确保在不同的工作环境下都能正确找到文件下载路径
parent
97810f23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
spa_search.exe
dist/spa_search.exe
+0
-0
spa_search.py
src/spa_search.py
+1
-1
No files found.
dist/spa_search.exe
View file @
a8ee314b
No preview for this file type
src/spa_search.py
View file @
a8ee314b
...
...
@@ -136,7 +136,7 @@ def export_item_read_data(invoice_id):
query_params
=
parse_qs
(
parsed_url
.
query
)
# 提取 filename 参数
filename
=
query_params
.
get
(
'fileName'
,
[
'未找到文件名'
])[
0
]
report_file_tmp_dir
=
f
"
spa
\\
{invoice_id}
\\
{filename}
\\
"
report_file_tmp_dir
=
os
.
getcwd
()
+
f
"
\\
spa
\\
{invoice_id}
\\
{filename}
\\
"
host
=
domain
.
switch_domain
(
country
)
report_file
=
report_file_tmp_dir
+
"BackupReport.xls"
while
True
:
...
...
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