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