From 9f604f29c9aaed78824fed49474034d940a285bf Mon Sep 17 00:00:00 2001 From: Dove Chen Date: Mon, 6 Jun 2022 17:33:12 +0800 Subject: [PATCH] add join in group state --- src/dataStructure/ExternalContactGroupChatMemberList.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dataStructure/ExternalContactGroupChatMemberList.php b/src/dataStructure/ExternalContactGroupChatMemberList.php index dd1d710..61da3d4 100644 --- a/src/dataStructure/ExternalContactGroupChatMemberList.php +++ b/src/dataStructure/ExternalContactGroupChatMemberList.php @@ -15,6 +15,7 @@ * @property array $invitor 邀请者。目前仅当是由本企业内部成员邀请入群时会返回该值 * @property string $group_nickname 在群里的昵称 * @property string $name 名字。仅当 need_name = 1 时返回 如果是微信用户,则返回其在微信中设置的名字 如果是企业微信联系人,则返回其设置对外展示的别名或实名 + * @property string $state 入群渠道标识 * * @package dovechen\yii2\weWork\src\dataStructure */ @@ -34,6 +35,7 @@ public static function parseFromArray ($arr) $memberList->unionid = Utils::arrayGet($arr, 'unionid'); $memberList->join_time = Utils::arrayGet($arr, 'join_time'); $memberList->join_scene = Utils::arrayGet($arr, 'join_scene'); + $memberList->state = Utils::arrayGet($arr, 'state'); $memberList->invitor = []; $invitor = Utils::arrayGet($arr, 'invitor');