feat: 增加对ProductLists.php的异常情况处理

This commit is contained in:
mkm 2024-06-11 18:15:29 +08:00
parent 4ef2a02134
commit 2ecb52ca97

View File

@ -91,8 +91,9 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface
$where[]=['cate_id','in',array_merge($arr,$arr2)]; $where[]=['cate_id','in',array_merge($arr,$arr2)];
} }
}else{ }else{
$where[]=['cate_id','=',$cate_id]; if($cate_id){
$where[]=['cate_id','=',$cate_id];
}
} }
if(!empty($order_param)){ if(!empty($order_param)){
if($order_param == 'asc'){ if($order_param == 'asc'){