From 2c9c2fc361aeeb865e40273865de1a9a25e24790 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Fri, 1 Jul 2022 15:18:39 +0800 Subject: [PATCH] fixed cart --- beike/Shop/Services/CheckoutService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beike/Shop/Services/CheckoutService.php b/beike/Shop/Services/CheckoutService.php index 3b637319..aeeab5f6 100644 --- a/beike/Shop/Services/CheckoutService.php +++ b/beike/Shop/Services/CheckoutService.php @@ -30,12 +30,12 @@ class CheckoutService $carts = CartService::reloadData($cartList); $data = [ - 'addresses' => $addresses, - 'shipments' => $shipments, 'country_id' => setting('country_id'), 'customer_id' => $customer->id ?? null, 'countries' => CountryRepo::all(), - 'payments' => $payments, + 'addresses' => $addresses, + 'shipping_methods' => $shipments, + 'payment_methods' => $payments, 'carts' => $carts ]; return $data;