From fa3b17123b7fbedf31754899bc580af8595b952d Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 25 Jun 2024 14:18:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84ListsSearchTrait?= =?UTF-8?q?=E7=B1=BB=E4=B8=AD=E7=9A=84=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/lists/ListsSearchTrait.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/common/lists/ListsSearchTrait.php b/app/common/lists/ListsSearchTrait.php index 4a92cef50..c7d7e7091 100644 --- a/app/common/lists/ListsSearchTrait.php +++ b/app/common/lists/ListsSearchTrait.php @@ -22,23 +22,6 @@ trait ListsSearchTrait return []; } $where = []; - $class_key = $this->request->__get('class_key'); - if ($class_key !== null) { - foreach ($class_key as $key => $value) { - if (isset($search[$key])) { - foreach ($value as $v) { // 遍历class_key的值,添加到search数组中 - array_push($search[$key], $v); // 添加class_key的搜索条件 - } - } else { - $search[$key] = [$value[0]]; // 创建新的搜索条件 - } - } - } - - $class_value = $this->request->__get('class_value'); // 获取class_value的值 - if ($class_value !== null) { - $this->params = array_merge($this->params, $class_value); - } foreach ($search as $whereType => $whereFields) { switch ($whereType) { case '=':