diff --git a/blender/fill_dm_code_new.py b/blender/fill_dm_code_new.py index 07c6243..00aa37e 100644 --- a/blender/fill_dm_code_new.py +++ b/blender/fill_dm_code_new.py @@ -77,7 +77,7 @@ def active_object(obj): def down_obj_fromoss(pid, print_type=1, order_id=None): # print_type:// 打印状态 1:正常打印 2:重打 3:加打,4: 样品 print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 开始下载模型,若网络异常将每间隔2秒重试10次...') - if not order_id is None: + if order_id is not None: path = os.path.join(workdir, f'{pid}_{order_id}') else: path = os.path.join(workdir, pid) @@ -97,7 +97,7 @@ def down_obj_fromoss(pid, print_type=1, order_id=None): return -1 print(res.text) if res.json()['data'] != "": - prefix = f'objs/print/{pid}/{res.json()["data"]}/{str(order_id)}/' + prefix = f'objs/print/{pid}/{res.json()["data"]}/{str(order_id)}' print("最终的prefix",prefix)