From 2e027526524e6aaf7c3e4ce6981438dfeb9e9e97 Mon Sep 17 00:00:00 2001 From: TL Date: Thu, 30 Jun 2022 20:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E9=A1=BE=E5=AE=A2=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Admin/Http/Controllers/CustomerController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beike/Admin/Http/Controllers/CustomerController.php b/beike/Admin/Http/Controllers/CustomerController.php index 2ff72a8f..317a45fd 100644 --- a/beike/Admin/Http/Controllers/CustomerController.php +++ b/beike/Admin/Http/Controllers/CustomerController.php @@ -50,9 +50,11 @@ class CustomerController extends Controller public function edit(Request $request, Customer $customer) { + $addresses = AddressRepo::listByCustomer($customer->id); $data = [ 'customer' => $customer, 'customer_groups' => CustomerGroupRepo::list(), + 'addresses' => CustomerResource::collection($addresses), 'countries' => CountryRepo::all(), 'country_id' => setting('country_id'), '_redirect' => $this->getRedirect(),