This commit is contained in:
hackrobot
2024-05-17 13:29:11 +08:00
parent f184e92d31
commit c18e4b0917

View File

@@ -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: