From 6e1272781afa0887651c1bb5c3b081eb754d8da5 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 1 Nov 2023 18:58:10 +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, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/api/store/product/StoreMicro.php b/app/controller/api/store/product/StoreMicro.php index 3706d71e..cd463d89 100644 --- a/app/controller/api/store/product/StoreMicro.php +++ b/app/controller/api/store/product/StoreMicro.php @@ -10,7 +10,7 @@ use Exception; class StoreMicro extends BaseController { - function seach_bar_code($mer_id,$code='',$name=''){ + function seach_bar_code($code='',$name=''){ $where = ['is_used' => 1, 'status' => 1, 'is_del' => 0]; $field = 'id,store_name,bar_code,unit_name,price,cost,ot_price,stock,image'; if($code!=''){ @@ -70,6 +70,8 @@ class StoreMicro extends BaseController if ($mer_id == 0) { return app('json')->fail('商户不存在'); } + // $mer= Db::name('merchant')->where('mer_id', $mer_id)->where('status', 1)->find(); + $find=Db::name('product_library')->where('id',$id)->where($where)->find(); if ($find) {