购物车优化

feat/task1-c-wallet
devil 2020-07-29 15:56:05 +08:00
parent b579dc6e77
commit 8bb541ef9b
1 changed files with 8 additions and 5 deletions

View File

@ -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'];
}
}
}
}