rabin 5 years ago
parent
commit
7f903083a6
2 changed files with 6 additions and 0 deletions
  1. 1 0
      audit/database/data.php
  2. 5 0
      main/src/Content.php

+ 1 - 0
audit/database/data.php

@@ -217,6 +217,7 @@ return array
 			# 匹配的正则或函数 选填项
 			'option' => array
 			(
+				'name' => array('yes', 'like'),
 				'cate_id' => 'yes',
 				'type' => 'yes',
 				'type_no' => array('yes-type', '!='),

+ 5 - 0
main/src/Content.php

@@ -140,6 +140,11 @@ class Content extends Core
             $where['type'] = $type;
         }
 
+        $name = Dever::input('name');
+        if ($name) {
+            $where['name'] = $name;
+        }
+
         if (checkVersion()->video == 2) {
             $where['type_no'] = 2;
         }