Commit 436323c2 by 冷斌

update

parent 2262e043
......@@ -751,10 +751,27 @@ class Model_Live extends PhalApi_Model_NotORM {
try{
$client->push()
->setPlatform('all')
->message($title, [
'title' => $title,
'extras' => $data,
])
// ->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(
'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