From 8c29f7f7921a99a315cecf4e81941e6083969d7f Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Thu, 25 Jan 2024 11:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreSpu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index a6423693..dce7c908 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -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']!=''){