diff --git a/beike/Shop/Services/CartService.php b/beike/Shop/Services/CartService.php index 722c600d..4d60d43c 100644 --- a/beike/Shop/Services/CartService.php +++ b/beike/Shop/Services/CartService.php @@ -145,7 +145,7 @@ class CartService $carts = CartService::list(current_customer()); } - $selected = collect($carts)->where('selected', 1); + $selected = collect($carts); $quantity = $selected->sum('quantity'); $amount = $selected->sum('subtotal');