From 0e0ae92afdbfb014556f1fe334b937f0eb7bf401 Mon Sep 17 00:00:00 2001 From: Changhua Date: Thu, 9 Mar 2023 20:03:17 +0800 Subject: [PATCH] Fix get friends --- python/wcferry/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/wcferry/client.py b/python/wcferry/client.py index 794c98a..1e4ea3f 100644 --- a/python/wcferry/client.py +++ b/python/wcferry/client.py @@ -383,9 +383,9 @@ class Wcf(): } friends = [] for cnt in self.get_contacts(): - if (cnt.wxid.endswith("@chatroom") # 群聊 - or cnt.wxid.startswith("gh_") # 公众号 - or cnt.wxid in not_friends.keys() # 其他杂号 + if (cnt["wxid"].endswith("@chatroom") # 群聊 + or cnt["wxid"].startswith("gh_") # 公众号 + or cnt["wxid"] in not_friends.keys() # 其他杂号 ): continue friends.append(cnt)