Commit 436323c2 by 冷斌

update

parent 2262e043
...@@ -751,10 +751,27 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -751,10 +751,27 @@ class Model_Live extends PhalApi_Model_NotORM {
try{ try{
$client->push() $client->push()
->setPlatform('all') ->setPlatform('all')
->message($title, [ // ->message($title, [
'title' => $title, // 'title' => $title,
'extras' => $data, // 'extras' => $data,
]) // ])
->setNotificationAlert($title)
->iosNotification($title, array(
'sound' => 'sound.caf',
'category' => 'jiguang',
'extras' => array(
'type' => '2',
'userinfo' => []
),
))
->androidNotification('', array(
'extras' => array(
'type' => '2',
'title' => $title,
'userinfo' => []
),
))
->addRegistrationId($pushids) ->addRegistrationId($pushids)
->options(array( ->options(array(
'sendno' => 100, 'sendno' => 100,
......
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