From fbbc6a5d7f2f496d43ca676597291aaa3831f03b Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 31 Oct 2023 14:45:50 +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/StoreMicro.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/product/StoreMicro.php b/app/controller/api/store/product/StoreMicro.php index 3ac98201..7d0eeeb6 100644 --- a/app/controller/api/store/product/StoreMicro.php +++ b/app/controller/api/store/product/StoreMicro.php @@ -10,8 +10,8 @@ class StoreMicro extends BaseController { function seach_bar_code($mer_id,$code='',$name=''){ $category_id=Db::name('merchant')->where('mer_id',$mer_id)->value('category_id'); - $typePlatformId = Db::name('MerchantType')->where('type_code', 'in',[Merchant::TypeCode['TypePlatform'],Merchant::TypeCode['TypeTownSupplyChain']])->column('mer_type_id'); - $platformMerId = app()->make(MerchantDao::class)->getValidMerchant(['category_id' => $category_id])->whereIn('type_id',$typePlatformId)->column('mer_id'); + $mer_type_id = Db::name('MerchantType')->where('type_code', 'in',[Merchant::TypeCode['TypeSupplyChain'],Merchant::TypeCode['TypeTownSupplyChain']])->column('mer_type_id'); + $platformMerId = app()->make(MerchantDao::class)->getValidMerchant(['category_id' => $category_id])->whereIn('type_id',$mer_type_id)->column('mer_id'); if($platformMerId==null){ return app('json')->fail('没有市级供应链或者镇级供应链'); }