1
This commit is contained in:
1 parent
974afc8528
commit
f6a99a8520
1 file changed
+1
-1
@@ -60,7 +60,7 @@ def reload_obj(pid):
|
|||||||
print("imagePathT",imagePathT)
|
print("imagePathT",imagePathT)
|
||||||
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/updateCoverByPidForExternalOrder", data={'pid': pid, 'image_path': 'https://www.suwa3d.com/external_order_cover/'+imagePathT})
|
res = requests.post("https://mp.api.suwa3d.com/api/printOrder/updateCoverByPidForExternalOrder", data={'pid': pid, 'image_path': 'https://www.suwa3d.com/'+imagePathT})
|
||||||
print("res",res)
|
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')
|
||||||
|
|||||||
Reference in new issue
Block a user