...
|
...
|
@@ -205,15 +205,17 @@ class Common extends Api |
|
|
//模板消息测试
|
|
|
public function message()
|
|
|
{
|
|
|
$list = $this->ListOpenid();
|
|
|
dump($list);
|
|
|
die;
|
|
|
//公众号所有粉丝openid
|
|
|
$LikeOpenid = $this->ListOpenid();
|
|
|
$options = [
|
|
|
'app_id' => 'wx2adc803c6e8fd596', // AppID
|
|
|
'secret' => '925976a669063b7d26fd6527a1ed5197',
|
|
|
];
|
|
|
$app = new Application($options);
|
|
|
|
|
|
$userService = $app->user;
|
|
|
$users = $userService->batchGet($LikeOpenid);
|
|
|
dump($users);
|
|
|
die;
|
|
|
$notice = $app->notice;
|
|
|
$messageId = $notice->send([
|
|
|
'touser' => 'obtaR4jKqAts5e4Rp6ofEw7ftaes',
|
...
|
...
|
|