Commit 7e721588 by 冷斌

update

parent 436323c2
......@@ -751,26 +751,26 @@ class Model_Live extends PhalApi_Model_NotORM {
try{
$client->push()
->setPlatform('all')
// ->message($title, [
// 'title' => $title,
// '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' => []
),
))
->message($title, [
'title' => $title,
'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)
->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