From bbcf370a2dc526d592b88045535023cb5c765525 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 22 May 2023 11:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreSpu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index f7ab95ce..41853699 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -101,8 +101,8 @@ class StoreSpu extends BaseController 'keyword', 'cate_id', 'order', 'price_on', 'price_off', 'brand_id', 'pid', 'mer_cate_id', ['product_type', 0], 'action', 'common' ]); if ($where['action']) unset($where['product_type']); - $category_id=Db::name('merchant')->where('mer_id',$id)->value('category_id'); - $mer_id=Db::name('merchant')->where('mer_state',1)->where('status',1)->where('category_id',$category_id)->where('type_id',11)->value('mer_id'); +// $category_id=Db::name('merchant')->where('mer_id',$id)->value('category_id');->where('category_id',$category_id) + $mer_id=Db::name('merchant')->where('mer_state',1)->where('status',1)->where('type_id',11)->value('mer_id'); if (!$mer_id){ return app('json')->success(['count'=>0,'list'=>[]]);