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 '=':