dongchangxi 11 months ago
parent
commit
700f33e1de
  1. 1
      timer/external_order_glb.py

1
timer/external_order_glb.py

@ -61,6 +61,7 @@ def reload_obj(pid):
config.oss_bucket_website.put_object_from_file(f'{imagePathT}', f'D://print/{pid}/{pid}_pic.png') 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}) 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') obj_filename = os.path.join(config.workdir,'print',pid,f'{pid}.obj')
bpy.ops.wm.read_homefile() bpy.ops.wm.read_homefile()

Loading…
Cancel
Save