From 8bb541ef9bd5535878465df900b0cfead3c18fd7 Mon Sep 17 00:00:00 2001 From: devil Date: Wed, 29 Jul 2020 15:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/BuyService.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/application/service/BuyService.php b/application/service/BuyService.php index 850a10c39..fb876d953 100755 --- a/application/service/BuyService.php +++ b/application/service/BuyService.php @@ -275,13 +275,16 @@ class BuyService if(empty($v['error_msg']) && $v['inventory'] <= 0) { $v['is_error'] = 1; - $v['error_msg'] = '商品卖没货了'; + $v['error_msg'] = '商品没货了'; } - $ret = GoodsService::IsGoodsSiteTypeConsistent($v['goods_id'], $v['site_type']); - if(empty($v['error_msg']) && $ret['code'] != 0) + if(empty($v['error_msg'])) { - $v['is_error'] = 1; - $v['error_msg'] = $ret['msg']; + $ret = GoodsService::IsGoodsSiteTypeConsistent($v['goods_id'], $v['site_type']); + if($ret['code'] != 0) + { + $v['is_error'] = 1; + $v['error_msg'] = $ret['msg']; + } } } } -- GitLab