From 0cf526af726f795ed456ccf336a4ed526431bdb0 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 1 Nov 2023 19:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreMicro.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/product/StoreMicro.php b/app/controller/api/store/product/StoreMicro.php index d3748a30..e5f9a603 100644 --- a/app/controller/api/store/product/StoreMicro.php +++ b/app/controller/api/store/product/StoreMicro.php @@ -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;