diff --git a/application/service/BuyService.php b/application/service/BuyService.php index 850a10c395b58d4322a728e00147d79c3bc2b02d..fb876d9535f958afccbcb6f9a19c4474d3203379 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']; + } } } }