Skip to content

Commit

Permalink
add external contact addway
Browse files Browse the repository at this point in the history
  • Loading branch information
DoveChen committed Jul 21, 2020
1 parent 6f95d9b commit 63af792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dataStructure/ExternalContactFollowUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @property array $tags 标签信息
* @property string $remark_corp_name 该成员对此客户备注的企业名称
* @property array $remark_mobiles 该成员对此客户备注的手机号码,第三方不可获取
* @property array $add_way 该成员添加此客户的来源0、未知来源;1、 扫描二维码;2、搜索手机号;3、名片分享;4、群聊;5、手机通讯录;6、微信联系人;7、来自微信的添加好友申请;8、安装第三方应用时自动添加的客服人员;9、搜索邮箱;201、内部成员共享;202、管理员/负责人分配
* @property array $oper_userid 发起添加的userid,如果成员主动添加,为成员的userid;如果是客户主动添加,则为客户的外部联系人userid;如果是内部成员共享/管理员分配,则为对应的成员/管理员userid
*
* @package dovechen\yii2\weWork\src\dataStructure
*/
Expand Down Expand Up @@ -45,6 +47,8 @@ public static function parseFromArray ($arr)

$externalContactFollowUser->remark_corp_name = Utils::arrayGet($arr, 'remark_corp_name');
$externalContactFollowUser->remark_mobiles = Utils::arrayGet($arr, 'remark_mobiles');
$externalContactFollowUser->add_way = Utils::arrayGet($arr, 'add_way');
$externalContactFollowUser->oper_userid = Utils::arrayGet($arr, 'oper_userid');

return $externalContactFollowUser;
}
Expand Down

0 comments on commit 63af792

Please sign in to comment.