This commit is contained in:
dongchangxi committed 2025-03-15 15:34:02 +08:00
1 parent 7106e2549c
commit 0c37afe492
1 file changed
+2
+2
View File
@@ -39,6 +39,8 @@ def down_obj_fromoss(pid,order_id):
if ossPath != "":
prefix = os.path.join("objs","print",pid,ossPath,order_id)
filelist = oss2.ObjectIteratorV2(oss_client, prefix=prefix)
print(f'prefix:{prefix}')
print(f'ossPath:{ossPath}')
#判断filelist是否为空
if len(list(filelist)) == 0:
filelist = oss2.ObjectIteratorV2(oss_client, prefix=f'objs/print/{pid}/')