更新
This commit is contained in:
parent
0ea34aeb82
commit
6e1272781a
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user