|
@@ -18,8 +18,7 @@ function Jpush($user_id = 0,$alert = ''){
|
|
|
'mutable-content' => true,
|
|
|
'category' => 'jiguang',
|
|
|
'extras' => array(
|
|
|
- 'key' => 'value',
|
|
|
- 'jiguang'
|
|
|
+ 'key' => 'value'
|
|
|
),
|
|
|
))->androidNotification($alert, array(
|
|
|
'title' => '消息通知',
|
|
@@ -28,7 +27,7 @@ function Jpush($user_id = 0,$alert = ''){
|
|
|
'key' => 'value',
|
|
|
),
|
|
|
))->options(array(
|
|
|
- 'apns_production' => false,// false 开发环境 ,true 生产环境
|
|
|
+ 'apns_production' => true,// false 开发环境 ,true 生产环境
|
|
|
));
|
|
|
try {
|
|
|
$response = $push_payload->send();
|