提交 d51eff5a 编写于 作者: G gongfuxiang

商品多规格下单仅单买优化

上级 655de43e
......@@ -507,10 +507,10 @@ class BuyService
}
// 是否需要校验商品类型、is_buy、1校验、默认0不校验
// 商品小于等于1不校验
$is_check_goods_site_type = (isset($params['is_buy']) && $params['is_buy'] == 1) ? 1 : 0;
// 商品小于等于1不校验
if($is_check_goods_site_type == 1 &&
count($params['goods']) <= 1)
count(array_unique(array_column($params['goods'], 'goods_id'))) <= 1)
{
$is_check_goods_site_type = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册