报错:cannot find user by this audience

natural_pride
2017-07-27 09:28 2.4k 0

一开始还好好地 但是刚才试了一下 报这个错 这是什么问题啊

        $client = new \JPush\Client($this->_appKey, $this->_master_secret);
        foreach($pushdata as $key=>$value){
            $content = '《'.trim($value['book_name'], '《,》').'》更新了新章节:'.$value['newchapter'];
            $message = array(
                'content_type' => 'text',
                'extras' => array(
                    'type' => 2,
                    'book_id'=>$value['book_id'],
                ),
            );
            try {
                $response = $client->push()
                ->setPlatform($this->_platform)
                ->addAlias(array($value['dev_id']))
                ->setNotificationAlert($content)->androidNotification($message)
                ->send();
            } catch (\JPush\Exceptions\APIConnectionException $e) {
                print $e;
            } catch (\JPush\Exceptions\APIRequestException $e) {
                print $e;
            }
        }

1个回答

热门排序