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)
|
||||
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
|
||||
|
||||
|
||||
@@ -272,8 +272,8 @@ def create_redis_connection():
|
||||
time.sleep(5)
|
||||
|
||||
if __name__ == '__main__':
|
||||
# pid = "281230"
|
||||
# order_ids = [861077]
|
||||
# pid = "286049"
|
||||
# order_ids = [863038]
|
||||
# createGlb(str(pid),order_ids)
|
||||
arrArgs = sys.argv
|
||||
if len(arrArgs) == 2:
|
||||
|
||||
Reference in new issue
Block a user