From c88b765be612c67dafa0811a8ccb11521bb26735 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 12 Jan 2024 16:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreSpu.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index d0d14824..47388952 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -61,13 +61,17 @@ class StoreSpu extends BaseController 'type_id', 'street_id', 'category_id', - 'type_code' + 'type_code', + 'village_id' ]); if ($where['type_id']||$where['type_code']) { $arr = ['status' => 1, 'mer_state' => 1, 'is_del' => 0]; if ($where['street_id']) { $arr['street_id'] = $where['street_id']; } + if ($where['village_id']) { + $arr['village_id'] = $where['village_id']; + } if($where['type_code']){ $mer_type_id=Db::name('merchant_type')->where('type_code',$where['type_code'])->value('mer_type_id'); if($mer_type_id){ @@ -77,7 +81,7 @@ class StoreSpu extends BaseController $where['mer_ids'] = Merchant::getInstance()->whereIn('type_id', explode(',', $where['type_id']))->where($arr)->column('mer_id'); } - unset($where['type_id'], $where['street_id'],$where['type_code']); + 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;