更新
This commit is contained in:
parent
87dbf10846
commit
0cf526af72
@ -19,7 +19,7 @@ class StoreMicro extends BaseController
|
|||||||
if($len==12){
|
if($len==12){
|
||||||
$code='0'.$code;
|
$code='0'.$code;
|
||||||
}else{
|
}else{
|
||||||
return app('json')->success('条形码长度不正确');
|
return app('json')->fail('长度不正确'.$code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$res=Db::name('product_library')->where('bar_code',$code)->where($where)->field($field)->find();
|
$res=Db::name('product_library')->where('bar_code',$code)->where($where)->field($field)->find();
|
||||||
@ -29,7 +29,7 @@ class StoreMicro extends BaseController
|
|||||||
$ProductLibrary->caiji($code);
|
$ProductLibrary->caiji($code);
|
||||||
$res=Db::name('product_library')->where('bar_code',$code)->where($where)->field($field)->find();
|
$res=Db::name('product_library')->where('bar_code',$code)->where($where)->field($field)->find();
|
||||||
}catch(Exception $e){
|
}catch(Exception $e){
|
||||||
return app('json')->fail($e->getMessage());
|
return app('json')->fail('编码:'.$code.' '.$e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$find[]=$res;
|
$find[]=$res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user