修改任务上传报告路径

This commit is contained in:
wangxu 2026-05-19 16:16:18 +08:00
parent 30de6e25c6
commit 6e19cc6383
1 changed files with 1 additions and 1 deletions

View File

@ -2061,7 +2061,7 @@ def upload_greenwave_task_stage_file(params):
file_info = request.files[key] file_info = request.files[key]
name = file_info.filename name = file_info.filename
file_stream = file_info.stream file_stream = file_info.stream
cos_path = f'user/ledger/{nodeid}/{area_id}/{task_no}' cos_path = f'user/cross_doctor/task_file/{nodeid}/{area_id}/{task_no}'
folder_manager.ensure_folder(cos_path) folder_manager.ensure_folder(cos_path)
cos_key = f'{cos_path}/{name}' cos_key = f'{cos_path}/{name}'
cos_client.put_object(Bucket=g_cos_bucket, Key=cos_key, Body=file_stream) cos_client.put_object(Bucket=g_cos_bucket, Key=cos_key, Body=file_stream)