|
@@ -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): |
|
|
async def handle_name_card_async(request: Request,token_id,app_id, wxid,msg_data,from_wxid, to_wxid): |
|
|
logger.info('名片消息') |
|
|
logger.info('名片消息') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
|
|
|
|
|
|
|
|
|
if from_wxid == wxid: |
|
|
|
|
|
logger.info(f'自己发的名片消息,不处理') |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
msg_content_xml=msg_data["Content"]["string"] |
|
|
msg_content_xml=msg_data["Content"]["string"] |
|
|
# 解析XML字符串 |
|
|
# 解析XML字符串 |
|
|
root = ET.fromstring(msg_content_xml) |
|
|
root = ET.fromstring(msg_content_xml) |
|
|