修复错误
This commit is contained in:
parent
4da3d95dc1
commit
9771eb8f2a
@ -46,7 +46,7 @@ class StoreMicropayOrder extends BaseController
|
||||
$bar_code = $this->request->param('bar_code', 0);
|
||||
$mer_id = $this->request->param('mer_id', 0);
|
||||
if ($mer_id==0) return app('json')->fail('商户id不能为空');
|
||||
if ($bar_code==0) return app('json')->fail('条形码不能为空');
|
||||
if (strlen($bar_code)==1) return app('json')->fail('条形码不能为空');
|
||||
$find=Db::name('store_product_attr_value')->where('mer_id',$mer_id)->where('bar_code', $bar_code)->find();
|
||||
if (!$find) return app('json')->fail('商品不存在,您没有将该商品添加到店铺中');
|
||||
$data = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user