From 152fa240e33dbd3ed2b04a2f856fa63ecfc1453c Mon Sep 17 00:00:00 2001 From: H Vs Date: Thu, 24 Apr 2025 09:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8D=E7=89=87=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/endpoints/pipeline_endpoint.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/endpoints/pipeline_endpoint.py b/app/endpoints/pipeline_endpoint.py index 3336a2b..f7db097 100644 --- a/app/endpoints/pipeline_endpoint.py +++ b/app/endpoints/pipeline_endpoint.py @@ -967,8 +967,13 @@ async def handle_voice_group_async(request: Request,token_id,app_id, wxid,msg_da async def handle_name_card_async(request: Request,token_id,app_id, wxid,msg_data,from_wxid, to_wxid): logger.info('名片消息') - + try: + + if from_wxid == wxid: + logger.info(f'自己发的名片消息,不处理') + return + msg_content_xml=msg_data["Content"]["string"] # 解析XML字符串 root = ET.fromstring(msg_content_xml)