提交 8bb541ef 编写于 作者: D devil

购物车优化

上级 b579dc6e
......@@ -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'];
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册