mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-05 19:45:43 +08:00
购物车加入优化
This commit is contained in:
@ -362,6 +362,10 @@ class GoodsCartService
|
||||
{
|
||||
return $goods_base;
|
||||
}
|
||||
// 规格库存赋值
|
||||
$goods['inventory'] = $goods_base['data']['spec_base']['inventory'];
|
||||
// 规格最大限购
|
||||
$goods['buy_max_number'] = $goods_base['data']['spec_base']['buy_max_number'];
|
||||
|
||||
// 是否存在规格
|
||||
if(!empty($spec))
|
||||
@ -372,11 +376,6 @@ class GoodsCartService
|
||||
{
|
||||
$goods['images'] = $images;
|
||||
}
|
||||
|
||||
// 规格库存赋值
|
||||
$goods['inventory'] = $goods_base['data']['spec_base']['inventory'];
|
||||
// 规格最大限购
|
||||
$goods['buy_max_number'] = $goods_base['data']['spec_base']['buy_max_number'];
|
||||
}
|
||||
|
||||
// 数量
|
||||
|
||||
Reference in New Issue
Block a user