From dba35f6c36fbb459c5c56dcb515dd5a668041fc9 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Wed, 26 Feb 2025 11:08:55 +0800 Subject: [PATCH] 1 --- no_resize.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/no_resize.py b/no_resize.py index 513ad4e..e9cfff9 100644 --- a/no_resize.py +++ b/no_resize.py @@ -205,6 +205,9 @@ def make3d4print_task(r): os.makedirs(os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/'),mode=0o777, exist_ok=True) shutil.move(os.path.join(path, file), os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/')) + #判断是否是 Obj, 如果是的话要进行重命名 + if file.endswith(f'{pid}.obj'): + os.rename(os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/{file}'), os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/{objName}.obj'))