修复错误4

This commit is contained in:
mkm 2023-04-19 18:17:41 +08:00
parent fecb1a4a04
commit 51abdcb80b

View File

@ -15,12 +15,15 @@ class StoreMicro extends BaseController
if (!$store_product){ if (!$store_product){
return app('json')->fail('平台没有该条形码,请自行录入'); 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; $store_product['is_mer_show']=0;
return app('json')->success(['data'=>$store_product]); return app('json')->success(['data'=>$store_product]);
}; };
$find['is_mer_show']=1; $store_product=Db::name('store_product')->where('product_id',$find['product_id'])->find();
return app('json')->success(['data'=>$find]); $store_product['attr_value']=$find;
$store_product['is_mer_show']=1;
return app('json')->success(['data'=>$store_product]);
} }
public function eadtProduct(){ public function eadtProduct(){