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) {