From aacda723b2c0b4c5180d9dfa1e561241dd66f3c5 Mon Sep 17 00:00:00 2001 From: TL Date: Thu, 16 Mar 2023 16:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=B8=E5=AE=A2=E7=BB=93?= =?UTF-8?q?=E8=B4=A6=E6=97=B6=E6=9C=89=E7=BC=98shippingAddress=E5=92=8CPay?= =?UTF-8?q?mentaddress=E4=B8=BA=E7=A9=BA=E5=AF=BC=E8=87=B4=E7=A8=8E?= =?UTF-8?q?=E6=B2=A1=E8=AE=A1=E7=AE=97=E5=87=BA=E6=9D=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Services/TotalService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beike/Shop/Services/TotalService.php b/beike/Shop/Services/TotalService.php index 84b6c834..6fec997b 100644 --- a/beike/Shop/Services/TotalService.php +++ b/beike/Shop/Services/TotalService.php @@ -63,8 +63,8 @@ class TotalService public function getTaxes(): array { $addressInfo = [ - 'shipping_address' => $this->currentCart->shippingAddress, - 'payment_address' => $this->currentCart->paymentAddress, + 'shipping_address' => $this->currentCart->shippingAddress ?? $this->currentCart->guest_shipping_address, + 'payment_address' => $this->currentCart->paymentAddress ?? $this->currentCart->guest_payment_address, ]; $taxLib = Tax::getInstance($addressInfo);