Commit f311f99a authored by wwccw0591's avatar wwccw0591

pc

parent 9d9fd225
...@@ -69,7 +69,6 @@ class ClientPush ...@@ -69,7 +69,6 @@ class ClientPush
$messageContent=$this->getMessageContent($pushData['message']); $messageContent=$this->getMessageContent($pushData['message']);
// $pushObject=array('id'=>$toId,'memberName'=>'abc'); // $pushObject=array('id'=>$toId,'memberName'=>'abc');
$pushData['toId']=249; $pushData['toId']=249;
echo json_encode($pushData);exit;
try { try {
$response = $this->client->push() $response = $this->client->push()
->setPlatform('all') ->setPlatform('all')
...@@ -97,7 +96,7 @@ class ClientPush ...@@ -97,7 +96,7 @@ class ClientPush
)) ))
->message($messageContent, array( ->message($messageContent, array(
'title' => $title, 'title' => $title,
'content_type' => $pushData['type'], 'content_type' => $pushData['message']['type'],
'extras' => $pushData['message'], 'extras' => $pushData['message'],
)) ))
->options(array( ->options(array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment