From 65a76d18c537d78664664d40da3516c977c3bef3 Mon Sep 17 00:00:00 2001 From: rogersun Date: Fri, 26 Jun 2026 13:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4json=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/utils/show_process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ai/utils/show_process.py b/ai/utils/show_process.py index 4cfbdb6..ac77ded 100644 --- a/ai/utils/show_process.py +++ b/ai/utils/show_process.py @@ -42,7 +42,8 @@ def show_main_process(zz_code=None, day_delta=3): print('message:', message) print('tokens:', tokens) # 获取排片数据 - result_obj = json.loads(result) + print('result:', result) + result_obj = json.loads(result.strip()) print('result_obj:', result_obj, type(result_obj)) # 预测排片数据 _show = result_obj['show'].replace('```', '').replace('csv', '').strip()