作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

购物车列表返回参数修改

... ... @@ -195,7 +195,7 @@ class Cart extends Model
}
$total_num += $cart['goods_num'];
$total_price += $cart['goods_total_price'] = bcmul($cart['goods_price'], $cart['goods_num'], 2);
$cart->goods->visible(['goods_name','goods_image','category_ids']);
$cart->goods->visible(['goods_name','goods_image','category_ids','spec_type']);
if(!$cart->user_size){
$cart->user_size = [];
}else{
... ...