1
This commit is contained in:
1 parent
5a95811433
commit
e941123d06
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -272,8 +272,8 @@ def create_redis_connection():
|
|||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# pid = "281230"
|
# pid = "286049"
|
||||||
# order_ids = [861077]
|
# order_ids = [863038]
|
||||||
# createGlb(str(pid),order_ids)
|
# createGlb(str(pid),order_ids)
|
||||||
arrArgs = sys.argv
|
arrArgs = sys.argv
|
||||||
if len(arrArgs) == 2:
|
if len(arrArgs) == 2:
|
||||||
|
|||||||
Reference in new issue
Block a user