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