修改商品列表搜索

This commit is contained in:
luofei 2024-01-25 11:17:03 +08:00
parent 110c4c4fb1
commit 8c29f7f792

View File

@ -91,7 +91,7 @@ class StoreSpu extends BaseController
unset($where['type_id'], $where['street_id'],$where['type_code'],$where['village_id']);
$where['is_gift_bag'] = 0;
$where['product_type'] = $where['product_type']??0;
$where['product_type'] = $where['product_type'] != '' ? $where['product_type'] : 0;
$where['order'] = $where['order'] ?: 'star';
if ($where['is_trader'] != 1) unset($where['is_trader']);
if($where['category_id']!=''){