瀏覽代碼

测试推送

bianjunhui 2 年之前
父節點
當前提交
206e8ce547
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      application/api/controller/Message.php

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

@@ -66,6 +66,10 @@ class Message extends Api
         $notification->setAppId('6bbd561f-4d8e-4d04-a6c4-dbef1bf99694');
         $notification->setContents($content);
         $notification->setIncludedSegments([$segment]);
+        $data['url']='https://www.westkiss.com/';
+        $data['type']=0;
+        $jsons = json_encode($data);
+        $notification->setData($jsons);
         return $notification;
     }