From c18e4b09175134114c3f5d7e4a1903c8fee0fd57 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Fri, 17 May 2024 13:29:11 +0800 Subject: [PATCH] update --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index 9fbaa56..33ea40b 100644 --- a/main.py +++ b/main.py @@ -515,6 +515,15 @@ def kp(event_data): newFriendDict = WXBotService.get_friend_info( account_wxid, wxid) print('newFriendDict==>',newFriendDict) + allFriend = WXBotService.get_address_list(config.account_wxid) + for friendItem in allFriend['data']["contactList"]: + if friendItem['wxid'] == wxid: + # if matchesString in friendItem['nickname']: + newFriendDict = friendItem['wxid'] + print('newFriendDict222==>',newFriendDict) + else: + # print('通过nickname查不到wxid') + pass # 收到群聊消息 if group: