购物车加入优化
parent
586b61c7e3
commit
64fc96d2df
|
|
@ -362,6 +362,10 @@ class GoodsCartService
|
||||||
{
|
{
|
||||||
return $goods_base;
|
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))
|
if(!empty($spec))
|
||||||
|
|
@ -372,11 +376,6 @@ class GoodsCartService
|
||||||
{
|
{
|
||||||
$goods['images'] = $images;
|
$goods['images'] = $images;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 规格库存赋值
|
|
||||||
$goods['inventory'] = $goods_base['data']['spec_base']['inventory'];
|
|
||||||
// 规格最大限购
|
|
||||||
$goods['buy_max_number'] = $goods_base['data']['spec_base']['buy_max_number'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数量
|
// 数量
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue