This commit is contained in:
dongchangxi committed 2025-06-10 15:53:03 +08:00
1 parent 5c1d4fc1b9
commit 6263e6196b
2 files changed
+10 -6

No files matched your search

+4 -1
View File
@@ -235,7 +235,7 @@ def export_and_update_glbs(pid,order_ids):
print(res.text)
#执行获取obj缩略图
print("执行获取obj全身缩略图脚本")
os.system(f'python d:\\make2\\tools\pic_for_obj\image_rander_small.py -pid {pid} -i D://print/{pid} -o D://print/{pid}')
os.system(f'python d:\\make2\\tools\pic_for_obj\image_rander_small.py -pid {pid} -i D://print -o D://print/{pid}')
print("判断获取封面图是否存在0")
#判断文件是否存在,存在则上传到oss, 更新数据库内容
if os.path.exists(f'D://print/{pid}/{pid}_pic.png'):
@@ -272,6 +272,9 @@ def create_redis_connection():
time.sleep(5)
if __name__ == '__main__':
# pid = "281230"
# order_ids = [861077]
# createGlb(str(pid),order_ids)
arrArgs = sys.argv
if len(arrArgs) == 2:
pid = arrArgs[1]