From 02d48f5e013c85b93fef7c8d8afbc4bd8655ed28 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Sat, 15 Mar 2025 15:27:06 +0800 Subject: [PATCH] 1 --- apps/auto_convert3d_new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/auto_convert3d_new.py b/apps/auto_convert3d_new.py index 0d4aa44..ecc15b2 100644 --- a/apps/auto_convert3d_new.py +++ b/apps/auto_convert3d_new.py @@ -37,14 +37,14 @@ def down_obj_fromoss(pid,order_id): # 根据前缀获取文件列表 prefix = f'objs/print/{pid}/' if ossPath != "": - prefix = os.path.join("objs","print",pid,ossPath) + prefix = os.path.join("objs","print",pid,ossPath,order_id) filelist = oss2.ObjectIteratorV2(oss_client, prefix=prefix) #判断filelist是否为空 if len(list(filelist)) == 0: filelist = oss2.ObjectIteratorV2(oss_client, prefix=f'objs/print/{pid}/') print(f"从 objs/print/{pid}/ 下载数据") else: - print(f"从 objs/print/{pid}/{ossPath} 下载数据") + print(f"从 objs/print/{pid}/{ossPath}/{order_id} 下载数据") find = False for file in filelist: