Skip to content

Commit 8974a7a

Browse files
author
liaodong
committed
纠正mutable-content参数
1 parent 61c6bc6 commit 8974a7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JPush/PushPayload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ private function generateSendno() {
356356

357357
# new methods
358358
public function iosNotification($alert = '', array $notification = array()) {
359-
# $required_keys = array('sound', 'badge', 'content-available', 'mutable-available', category', 'extras');
359+
# $required_keys = array('sound', 'badge', 'content-available', 'mutable-content', category', 'extras');
360360
$ios = array();
361361
$ios['alert'] = (is_string($alert) || is_array($alert)) ? $alert : '';
362362
if (!empty($notification)) {
@@ -369,8 +369,8 @@ public function iosNotification($alert = '', array $notification = array()) {
369369
if (isset($notification['content-available']) && is_bool($notification['content-available']) && $notification['content-available']) {
370370
$ios['content-available'] = $notification['content-available'];
371371
}
372-
if (isset($notification['mutable-available']) && is_bool($notification['mutable-available']) && $notification['mutable-available']) {
373-
$ios['mutable-available'] = $notification['mutable-available'];
372+
if (isset($notification['mutable-content']) && is_bool($notification['mutable-content']) && $notification['mutable-content']) {
373+
$ios['mutable-content'] = $notification['mutable-content'];
374374
}
375375
if (isset($notification['category']) && is_string($notification['category'])) {
376376
$ios['category'] = $notification['category'];

0 commit comments

Comments
 (0)