bianjunhui 2 سال پیش
والد
کامیت
4279af4e0b
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      application/api/controller/Message.php

+ 2 - 0
application/api/controller/Message.php

@@ -74,6 +74,8 @@ class Message extends Api
         $notification->setIncludedSegments([$segment]);
         $notification->setIosBadgeType('Increase');
         $notification->setIosBadgeCount(1);
+        $notification->setIsIos(true);
+        $notification->setContentAvailable(true);
         $data['push_para']=$url;
         $data['push_type']=$type;
         $data['title']=$title;