From 8e957d7d869cb63904962418ab15ad5beaef7aca Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Wed, 19 Jun 2024 18:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=B1=BB=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/product/ProductLists.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/lists/product/ProductLists.php b/app/api/lists/product/ProductLists.php index 1acae8a27..ddd95cc01 100644 --- a/app/api/lists/product/ProductLists.php +++ b/app/api/lists/product/ProductLists.php @@ -98,6 +98,8 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface, L if ($arr) { $arr2 = Cate::where('pid', 'in', $arr)->column('id'); $this->searchWhere[] = ['cate_id', 'in', array_merge($arr, $arr2)]; + }else{ + $this->searchWhere[] = ['cate_id','=',$class_all]; } }