Commit 7e721588 by 冷斌

update

parent 436323c2
...@@ -751,26 +751,26 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -751,26 +751,26 @@ 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) // ->setNotificationAlert($title)
->iosNotification($title, array( // ->iosNotification($title, array(
'sound' => 'sound.caf', // 'sound' => 'sound.caf',
'category' => 'jiguang', // 'category' => 'jiguang',
'extras' => array( // 'extras' => array(
'type' => '2', // 'type' => '2',
'userinfo' => [] // 'userinfo' => []
), // ),
)) // ))
->androidNotification('', array( // ->androidNotification('', array(
'extras' => array( // 'extras' => array(
'type' => '2', // 'type' => '2',
'title' => $title, // 'title' => $title,
'userinfo' => [] // 'userinfo' => []
), // ),
)) // ))
->addRegistrationId($pushids) ->addRegistrationId($pushids)
->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