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

fix(spa_search): 修复文件下载路径问题

- 在生成报告文件临时目录路径时,添加了当前工作目录作为前缀
- 这样可以确保在不同的工作环境下都能正确找到文件下载路径
parent 97810f23
No preview for this file type
......@@ -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:
......
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