From 25c97708e77d4fc828aa87891aaca7d451df5616 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Thu, 10 Jul 2025 17:55:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E7=94=9F=E4=B8=B4=E6=97=B6=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comfyui/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comfyui/main.py b/comfyui/main.py index f97ae24..f94285f 100644 --- a/comfyui/main.py +++ b/comfyui/main.py @@ -238,6 +238,10 @@ if __name__ == '__main__': styleNumber = int(info['style_number']) print(f"pid:{pid} orderId:{orderId} style_number:{styleNumber}") if pid > 0 and orderId > 0 and styleNumber > 0: + #创建临时文件 以pid 和 orderId 和 styleNumber 为文件名 文件内容为空 + tempFile = os.path.join(downloadPath, f"{pid}_{orderId}_{styleNumber}.txt") + with open(tempFile, 'w') as f: + f.write('') main(pid,orderId,styleNumber) except json.JSONDecodeError as e: print(f'JSON解析错误:{e}')