This commit is contained in:
dongchangxi committed 2025-02-08 21:07:41 +08:00
1 parent 28449373c7
commit d773b4a64b
1 file changed
+2
+2
View File
@@ -59,6 +59,8 @@ def reload_obj(pid):
if imagePathT != 0:
print("imagePathT",imagePathT)
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, 'coverImg': 'https://www.suwa3d.com/external_order_cover/'+imagePathT})
obj_filename = os.path.join(config.workdir,'print',pid,f'{pid}.obj')
bpy.ops.wm.read_homefile()