diff --git a/beike/Shop/Http/Controllers/CheckoutController.php b/beike/Shop/Http/Controllers/CheckoutController.php index 79ca84a7..d2bd511b 100644 --- a/beike/Shop/Http/Controllers/CheckoutController.php +++ b/beike/Shop/Http/Controllers/CheckoutController.php @@ -19,7 +19,7 @@ class CheckoutController extends Controller public function index(Request $request) { $data = CheckoutService::checkoutData(); - // dd($data); + dd($data); return view('checkout', $data); } } diff --git a/beike/Shop/Services/CheckoutService.php b/beike/Shop/Services/CheckoutService.php index 739820e5..169f67bc 100644 --- a/beike/Shop/Services/CheckoutService.php +++ b/beike/Shop/Services/CheckoutService.php @@ -32,6 +32,12 @@ class CheckoutService $carts = CartService::reloadData($cartList); $data = [ + 'current' => [ + 'shipping_address_id' => 2, + 'payment_address_id' => 3, + 'shipping_method' => 'flat_shipping', + 'payment_method' => 'bk_stripe', + ], 'country_id' => (int)setting('country_id'), 'customer_id' => $customer->id ?? null, 'countries' => CountryRepo::all(),