diff --git a/app/api/lists/product/ProductLists.php b/app/api/lists/product/ProductLists.php index 7ef79db97..02ff4c402 100644 --- a/app/api/lists/product/ProductLists.php +++ b/app/api/lists/product/ProductLists.php @@ -91,8 +91,9 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface $where[]=['cate_id','in',array_merge($arr,$arr2)]; } }else{ - $where[]=['cate_id','=',$cate_id]; - + if($cate_id){ + $where[]=['cate_id','=',$cate_id]; + } } if(!empty($order_param)){ if($order_param == 'asc'){