From 498cdc65c7031c393c502c6bd5a9be730671d407 Mon Sep 17 00:00:00 2001 From: H Vs Date: Mon, 28 Apr 2025 09:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=85=B3=E9=94=AE=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/endpoints/pipeline_endpoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/endpoints/pipeline_endpoint.py b/app/endpoints/pipeline_endpoint.py index 859e9e1..15131d7 100644 --- a/app/endpoints/pipeline_endpoint.py +++ b/app/endpoints/pipeline_endpoint.py @@ -400,7 +400,8 @@ async def handle_text_async(request: Request,token_id,app_id, wxid,msg_data,from callback_to_user=msg_data["FromUserName"]["string"] # 判断哪些关键词存在于 msg_content 中 - keywords = ["预约", "报价", "购买", "价钱","价格", "多少钱", "下单"] + #keywords = ["预约", "报价", "购买", "价钱","价格", "多少钱", "下单"] + keywords =["报价","预约","买","价钱","价格","多少钱","下单","优惠","打折","折扣","几钱","便宜","贵","最低","续费","试用","体验","免费","费用","开票","开通","注册"] found_keywords = [keyword for keyword in keywords if keyword in msg_content] if found_keywords: await request.app.state.gewe_service.set_human_handle_msg_with_contact_wxid_key_word_async(wxid,callback_to_user,60*30)