From 51abdcb80ba22131906af580db1b75c2b589a5e0 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 19 Apr 2023 18:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreMicro.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/product/StoreMicro.php b/app/controller/api/store/product/StoreMicro.php index 7621d23f..aa5e034d 100644 --- a/app/controller/api/store/product/StoreMicro.php +++ b/app/controller/api/store/product/StoreMicro.php @@ -15,12 +15,15 @@ class StoreMicro extends BaseController if (!$store_product){ return app('json')->fail('平台没有该条形码,请自行录入'); } + $store_product['attr_value']=Db::name('store_product_attr_value')->where('product_id',$store_product['product_id'])->find(); $store_product['is_mer_show']=0; return app('json')->success(['data'=>$store_product]); }; - $find['is_mer_show']=1; - return app('json')->success(['data'=>$find]); + $store_product=Db::name('store_product')->where('product_id',$find['product_id'])->find(); + $store_product['attr_value']=$find; + $store_product['is_mer_show']=1; + return app('json')->success(['data'=>$store_product]); } public function eadtProduct(){