1、获取用户openid及资料
条件:认证的公众号或开发账号
load()->model('mc');
$userInfo = mc_oauth_userinfo();
2、改指定的用户发送通知消息
条件:$weid为微赞的本地公众号ID
$weid=$_W['uniacid'];
load()->model('account');
$sendinfo = '通知消息:\n\n';
$sendinfo .= '消息编号:<a href=\"http://www.baidu.com\">百度</a> \n';
$send['msgtype'] = 'text';
$send['text'] = array('content' => urlencode($sendinfo));
$acc = WeixinAccount::create($weid);
$send['touser'] = trim($userInfo['openid']);
$acc->sendCustomNotice($send);
