dever 6 년 전
부모
커밋
77529b8a76
3개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 0
      content/database/applet.php
  2. 1 1
      doc/apidoc.php
  3. 4 0
      push/lib/Data.php

+ 12 - 0
content/database/applet.php

@@ -46,6 +46,18 @@ return array
             'search'    => 'fulltext',
             'list'      => true,
         ),
+
+        'link'      => array
+        (
+            'type'      => 'varchar-300',
+            'name'      => '小程序跳转链接-可以为空,为空则不跳转',
+            'default'   => '',
+            'desc'      => '小程序名称',
+            'match'     => 'option',
+            'update'    => 'text',
+            'search'    => 'fulltext',
+            'list'      => true,
+        ),
         
         'reorder'       => array
         (

+ 1 - 1
doc/apidoc.php

@@ -378,7 +378,7 @@
  * @apiSuccess {String}   push_focus.type 类型,参考公共参数中的类型设置说明中的type说明
  * @apiSuccess {String}   push_focus.id 源表id,根据type计算路径,然后把这个id加上就是最终的path,小程序和app同样。如果没有id,则进入type相对应的列表。请做好判断!!
  * @apiSuccess {String}   push_focus.appid 当type==7时有效,小程序的appid
- * @apiSuccess {String}   push_focus.link 当type==10时有效,链接
+ * @apiSuccess {String}   push_focus.link 当type==10或者type==7时有效,链接,如果type==7并且链接存在,则跳转到链接
  * @apiSuccess {String}   push_focus.cdate 时间
 
 

+ 4 - 0
push/lib/Data.php

@@ -121,6 +121,10 @@ class Data
                     if (isset($data['appid']) && $data['appid']) {
                         $info['appid'] = $data['appid'];
                     }
+
+                    if (isset($data['link']) && $data['link']) {
+                        $info['link'] = $data['link'];
+                    }
                 }
             }
         } else {