This commit is contained in:
dongchangxi committed 2025-06-25 16:03:58 +08:00
1 parent 5a95811433
commit e941123d06
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -131,10 +131,12 @@ def checkIsFinish(driver, pid, orderId,styleNumber):
file_path = os.path.join(folder, file)
if "tiff" in file:
ossPath = f"photos/{pid}/cartoon_deep/{styleNumber}/{styleNumber}.tiff"
time.sleep(5)
utils.oss().put_object_from_file(ossPath, file_path)
uploadCounts += 1
elif "png" in file:
ossPath = f"photos/{pid}/cartoon_deep/{styleNumber}/{styleNumber}.png"
time.sleep(5)
utils.oss().put_object_from_file(ossPath, file_path)
uploadCounts += 1