dever 6 years ago
parent
commit
cb08fa1d10
1 changed files with 9 additions and 4 deletions
  1. 9 4
      lib/Data.php

+ 9 - 4
lib/Data.php

@@ -112,13 +112,18 @@ class Data
     {
         $type = Dever::input('type', 1);
         $id = Dever::input('id', 1);
-        $push = array('type' => $type, 'id' => $id);
-
-        $push = json_encode($push);
-        $uid = -1;
         $to_uid = Dever::input('uid', 7);
         $name = Dever::input('name', 'test');
         $content = Dever::input('content', 'test');
+        $link = Dever::input('link');
+
+        $ios = array('type' => $type, 'id' => $id, 'name' => $name, 'link' => $link);
+
+        $push = array('jstyle://cn.jstyle.app/route?' . http_build_query($param), json_encode($param));
+
+        //$push = json_encode($push);
+        $uid = -1;
+        
         $result = $this->push($uid, $to_uid, $name, $content, 11, 1, 1, $push);
 
         return $result;