PHP推送问题,返回错误

_SABER
2016-11-23 06:41 4.7k 0

用的文档最简单的推送

require 'jpush-api-php-client-3.5.5/autoload.php';
use JPush\Client as JPush;
$app_key='61ccf51dd203736c3de071c2';
$master_secret= 'f13bdf105f17075d17adacc0';
$client = new JPush($app_key, $master_secret);
$result = $client->push()
    ->setPlatform('all')
    ->addAllAudience()
    ->setNotificationAlert('Hello, JPush')
    ->send();

echo 'Result=' . json_encode($result) . $br;

返回这个错误。。

PHP Fatal error:  Uncaught 
JPush\Exceptions\APIRequestException -- [1011]: cannot find user by this audience 

  thrown in D:\oceanscm\oceanscm\dhclub_app\jpush-api-php-client-3.5.5\src\JPush\Http.php on line 114

求解决啊

1个回答

热门排序