Commit 5e217013 authored by wwccw0591's avatar wwccw0591

pc

parent f724004d
...@@ -66,7 +66,8 @@ class ClientPush ...@@ -66,7 +66,8 @@ class ClientPush
{ {
$title=$this->getMessageType($pushData['fromType']); $title=$this->getMessageType($pushData['fromType']);
$messageContent=$this->getMessageContent($pushData['message']); $messageContent=$this->getMessageContent($pushData['message']);
$pushData['toId']=249; $toId=249;
$pushObject=array('id'=>$toId,'memberName'=>'abc');
try { try {
$response = $this->client->push() $response = $this->client->push()
->setPlatform('all') ->setPlatform('all')
...@@ -85,17 +86,17 @@ class ClientPush ...@@ -85,17 +86,17 @@ class ClientPush
// 'content-available' => true, // 'content-available' => true,
// 'mutable-content' => true, // 'mutable-content' => true,
'category' => 'shenbd', 'category' => 'shenbd',
'extras' => json_encode($toId), 'extras' => $pushObject,
))
->androidNotification('test message', array(
'title' => 'title',
// 'builder_id' => 2,
'extras' => $pushObject,
)) ))
// ->androidNotification('test message', array(
// 'title' => 'title',
// // 'builder_id' => 2,
// 'extras' => json_encode($toId),
// ))
->message('test message', array( ->message('test message', array(
'title' => 'title', 'title' => 'title',
'content_type' => $pushData['type'], 'content_type' => $pushData['type'],
'extras' => json_encode($toId), 'extras' => $pushObject,
)) ))
->options(array( ->options(array(
// sendno: 表示推送序号,纯粹用来作为 API 调用标识, // sendno: 表示推送序号,纯粹用来作为 API 调用标识,
......
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