From 700f33e1de43ea8a7bfc07b46b774f98cea91cdc Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Sat, 8 Feb 2025 21:13:30 +0800 Subject: [PATCH] 1 --- timer/external_order_glb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/timer/external_order_glb.py b/timer/external_order_glb.py index 5d6099a..4ef8308 100644 --- a/timer/external_order_glb.py +++ b/timer/external_order_glb.py @@ -61,7 +61,8 @@ def reload_obj(pid): config.oss_bucket_website.put_object_from_file(f'{imagePathT}', f'D://print/{pid}/{pid}_pic.png') #请求接口 res = requests.post("https://mp.api.suwa3d.com/api/printOrder/updateExternalOrderCoverImg", data={'pid': pid, 'image_path': 'https://www.suwa3d.com/external_order_cover/'+imagePathT}) - + print("res",res) + obj_filename = os.path.join(config.workdir,'print',pid,f'{pid}.obj') bpy.ops.wm.read_homefile() bpy.ops.object.delete(use_global=False, confirm=False)