dongchangxi 6 months ago
parent
commit
e941123d06
  1. 2
      comfyui/main.py
  2. 4
      timer/external_order_glbV2.py

2
comfyui/main.py

@ -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

4
timer/external_order_glbV2.py

@ -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:

Loading…
Cancel
Save