From 97588de88def5bf6a716e2815adb9623ecf806c2 Mon Sep 17 00:00:00 2001 From: TL Date: Tue, 5 Jul 2022 10:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Services/CheckoutService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beike/Shop/Services/CheckoutService.php b/beike/Shop/Services/CheckoutService.php index bd3e6433..aafa5a9a 100644 --- a/beike/Shop/Services/CheckoutService.php +++ b/beike/Shop/Services/CheckoutService.php @@ -20,6 +20,7 @@ use Beike\Repositories\OrderRepo; use Beike\Repositories\PluginRepo; use Beike\Repositories\AddressRepo; use Beike\Repositories\CountryRepo; +use Beike\Shop\Http\Resources\Account\AddressResource; use Beike\Shop\Http\Resources\Checkout\PaymentMethodItem; use Beike\Shop\Http\Resources\Checkout\ShippingMethodItem; @@ -132,7 +133,7 @@ class CheckoutService 'country_id' => (int)setting('system.country_id'), 'customer_id' => $customer->id ?? null, 'countries' => CountryRepo::all(), - 'addresses' => $addresses, + 'addresses' => AddressResource::collection($addresses), 'shipping_methods' => $shipments, 'payment_methods' => $payments, 'carts' => $carts