From 551ca18a6c562de9db91b4ee7cef0afbd4cedaaf Mon Sep 17 00:00:00 2001 From: rogersun Date: Mon, 15 Jun 2026 16:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9F=A5=E6=89=BE=E9=A2=84?= =?UTF-8?q?=E4=BC=B0=E7=A5=A8=E6=88=BF=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/utils/show_process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/utils/show_process.py b/ai/utils/show_process.py index fd04e63..e48d6ad 100644 --- a/ai/utils/show_process.py +++ b/ai/utils/show_process.py @@ -52,8 +52,8 @@ def show_main_process(zz_code=None): _show = match.group(1) print('_show:', _show) # 获取销售额 - _sales = next((s for s in result.split('\n') if re.search('预估销售数据', s)), '') - _sales = str(re.findall(r'\d+\.?\d*', _sales)[0]) + _sales = next((s for s in result.split('\n') if re.search(r'\d{3,6}元', s)), '') + _sales = str(re.findall(r'\d{3,6}元', _sales)[-1]) print('_sales:', _sales) # 处理返回结果 try: