Commit 5e217013 authored by wwccw0591's avatar wwccw0591

pc

parent f724004d
......@@ -66,7 +66,8 @@ class ClientPush
{
$title=$this->getMessageType($pushData['fromType']);
$messageContent=$this->getMessageContent($pushData['message']);
$pushData['toId']=249;
$toId=249;
$pushObject=array('id'=>$toId,'memberName'=>'abc');
try {
$response = $this->client->push()
->setPlatform('all')
......@@ -85,17 +86,17 @@ class ClientPush
// 'content-available' => true,
// 'mutable-content' => true,
'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(
'title' => 'title',
'content_type' => $pushData['type'],
'extras' => json_encode($toId),
'extras' => $pushObject,
))
->options(array(
// 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