From 4b1a4de963b0cf8291b651c4c6428e5319aa4abe Mon Sep 17 00:00:00 2001 From: H Vs Date: Mon, 24 Mar 2025 10:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/endpoints/pipeline_endpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/endpoints/pipeline_endpoint.py b/app/endpoints/pipeline_endpoint.py index 9c6cb94..70a3f80 100644 --- a/app/endpoints/pipeline_endpoint.py +++ b/app/endpoints/pipeline_endpoint.py @@ -22,10 +22,10 @@ messages_router = APIRouter() WX_BACKLIST=['fmessage', 'medianote','weixin','weixingongzhong','tmessage'] @messages_router.post("/messages",response_model=None) async def get_messages(request: Request, body: Dict[str, Any]): - + logger.info(f"收到微信回调消息: {json.dumps(body, separators=(',', ':'),ensure_ascii=False)}") try: msg = body - logger.info(f"收到微信回调消息: {json.dumps(msg, separators=(',', ':'),ensure_ascii=False)}") + type_name =msg.get("TypeName") app_id = msg.get("Appid") k, loginfo = await request.app.state.gewe_service.get_login_info_by_app_id_async(app_id)