dever 6 years ago
parent
commit
927f382537
4 changed files with 10 additions and 1 deletions
  1. 1 0
      audit/database/data.php
  2. 1 0
      doc/apidoc.php
  3. 6 0
      main/src/Content.php
  4. 2 1
      push/database/data.php

+ 1 - 0
audit/database/data.php

@@ -195,6 +195,7 @@ return array
 			'option' => array
 			(
 				'cate_id' => 'yes',
+				'type' => 'yes',
 				'audit' => 2,
 				'status' => 2,
 				'state' => 1,

+ 1 - 0
doc/apidoc.php

@@ -327,6 +327,7 @@
  *
  * @apiParam {String} signature signature
  * @apiParam {Number} menu 可选参数,栏目id 
+ * @apiParam {Number} type 可选参数,类型1为图文、2为视频、3为直播,小刊请到专门的接口获取
  *
  * @apiSuccess {Object[]} news 更多图文等数据
  * @apiSuccess {String}   news.id 图文id

+ 6 - 0
main/src/Content.php

@@ -53,6 +53,12 @@ class Content extends Core
         if ($cate > 0) {
             $where['cate_id'] = $cate;
         }
+
+        $type = Dever::input('type');
+        if ($type > 0) {
+            $where['type'] = $type;
+        }
+
     	$data = Dever::db('audit/data')->getAll($where);
         if ($data) {
             foreach ($data as $k => $v) {

+ 2 - 1
push/database/data.php

@@ -98,9 +98,10 @@ return array
             'desc'      => '推送位',
             'match'     => 'is_numeric',
             'search'    => 'select',
-            'update'    => 'select',
+            //'update'    => 'select',
             'option'    => $list,
             'list'      => true,
+            'value'     => Dever::input('search_option_info_id', '1'),
         ),
 
         'type'      => array