From b9085c25f633b33df0e9c8c0a74934422e4ab3d1 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 27 May 2024 09:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=A2=9E=E5=8A=A0=E9=AD=94=E6=9C=AF=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/lists/ListsSearchTrait.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/common/lists/ListsSearchTrait.php b/app/common/lists/ListsSearchTrait.php index c57e256..bae153e 100644 --- a/app/common/lists/ListsSearchTrait.php +++ b/app/common/lists/ListsSearchTrait.php @@ -22,6 +22,14 @@ trait ListsSearchTrait return []; } $where = []; + $class_key=$this->request->__get('class_key'); + foreach($class_key as $key => $value){ + array_push($search[$key], $value); // 添加class_key的搜索条件 + } + $class_value=$this->request->__get('class_value'); // 获取class_value的值 + if($class_value){ + $this->params=array_merge($this->params,$class_value); + } foreach ($search as $whereType => $whereFields) { switch ($whereType) { case '=':