From 9771eb8f2a909462a282d40cd30a2581ff518b85 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 14 Apr 2023 17:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/order/StoreMicropayOrder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/store/order/StoreMicropayOrder.php b/app/controller/api/store/order/StoreMicropayOrder.php index b3c8dd55..eeaa034e 100644 --- a/app/controller/api/store/order/StoreMicropayOrder.php +++ b/app/controller/api/store/order/StoreMicropayOrder.php @@ -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 = [