微擎客服消息发送的函数

微擎客服消息发送的函数
// $this->sendCustomNotices($openid, 'content text', 公众号ID)


$custom = array(
    'msgtype' => 'text',
    'text' => array('content' => urlencode('欢迎您再次订购!')),
    'touser' => 'oPUOlw7yvucjUrZhzG6gd8VdILa4',
);
$account_api = WeAccount::create();
$result = $account_api->sendCustomNotice($custom);
print_r($result);
posted @ 2019-10-17 09:36  GetcharZp  阅读(509)  评论(0编辑  收藏  举报