소스 검색

测试推送

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;
     }