diff --git a/robot.py b/robot.py index 7482c0c..539b2b4 100644 --- a/robot.py +++ b/robot.py @@ -476,11 +476,11 @@ class Robot(Job): member_wxids = [member.get('wxid') for member in member_list if member.get('wxid')] if member_wxids: - # 修改参数顺序:先传入app_id,再传入wxids列表,最后传入chatroom_id + # 将列表转换为集合,并直接传递参数 details_response = self.client.get_chatroom_member_detail( self.app_id, - wxids=member_wxids, - chatroom_id=chatroom_id + set(member_wxids), # 转换为集合 + chatroom_id ) # 使用ContactsDBOperator处理响应