diff --git a/blender/fill_dm_code.py b/blender/fill_dm_code.py index 9b443a3..5178160 100644 --- a/blender/fill_dm_code.py +++ b/blender/fill_dm_code.py @@ -534,6 +534,14 @@ def main(workdir, r, print_id): # temp_foot_data = short_url # print(f'temp_foot_data---{temp_foot_data}') gen_data_matrix(print_id,pid, qr_path) + #休眠1秒 + time.sleep(1) + #判断是否存在 qr_path,不存在就执行下一个任务 + if not os.path.exists(qr_path): + #移除该脚底板的面积处理 + res = requests.get(f'https://mp.api.suwa3d.com/api/footCode/deleteByPid?pid={pid}') + os.system(f'blender -b -P fill_dm_code.py') + return # 导入obj文件,重置到标准单位