1
This commit is contained in:
1 parent
5cfa3d84af
commit
70c9d86c20
1 file changed
+12
-9
+12
-9
@@ -174,15 +174,18 @@ def make3d4print_task(r):
|
|||||||
get_printsize_url = 'https://mp.api.suwa3d.com/api/printOrder/info'
|
get_printsize_url = 'https://mp.api.suwa3d.com/api/printOrder/info'
|
||||||
res = requests.get(f'{get_printsize_url}?id={orderId}')
|
res = requests.get(f'{get_printsize_url}?id={orderId}')
|
||||||
print('获取打印尺寸:', res.text)
|
print('获取打印尺寸:', res.text)
|
||||||
# for f in res.json()['data']['fileList']:
|
objName = ""
|
||||||
# if "undefined" in f:
|
for f in res.json()['data']['fileList']:
|
||||||
# continue
|
if "undefined" in f:
|
||||||
# try:
|
continue
|
||||||
# height = float(f.split('_')[-2][:-2]) * 10
|
try:
|
||||||
# except Exception as e:
|
objName = f
|
||||||
# print("eeee",e)
|
break
|
||||||
# bpy.ops.wm.quit_blender()
|
except Exception as e:
|
||||||
# return
|
print("eeee",e)
|
||||||
|
return
|
||||||
|
|
||||||
|
print("obj尺寸名称",objName)
|
||||||
|
|
||||||
|
|
||||||
# 如果指定文件夹目标文件存在,则先删除
|
# 如果指定文件夹目标文件存在,则先删除
|
||||||
|
|||||||
Reference in new issue
Block a user