From 6e685257798284db503934d2f7a0e686fe5e99b9 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Fri, 14 Jun 2024 18:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=88=86=E7=B1=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/product/ProductLists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/lists/product/ProductLists.php b/app/api/lists/product/ProductLists.php index 4abfe93cb..a11a486c2 100644 --- a/app/api/lists/product/ProductLists.php +++ b/app/api/lists/product/ProductLists.php @@ -101,7 +101,7 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface,Li $where[]=['cate_id','in',array_merge($arr,$arr2)]; } } - if(empty($where)){ + if(empty($where) && $class_all){ //2或者1 $where[]=['cate_id','=',$class_all]; } @@ -177,7 +177,7 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface,Li $where[]=['cate_id','in',array_merge($arr,$arr2)]; } } - if(empty($where)){ + if(empty($where)&& $class_all){ //2或者1 $where[]=['cate_id','=',$class_all]; }