diff --git a/beike/Shop/Services/CheckoutService.php b/beike/Shop/Services/CheckoutService.php index 8087cc53..116bce7a 100644 --- a/beike/Shop/Services/CheckoutService.php +++ b/beike/Shop/Services/CheckoutService.php @@ -32,7 +32,7 @@ class CheckoutService 'addresses' => $addresses, 'shipments' => $shipments, 'country_id' => setting('country_id'), - 'customer_id' => $customer->id, + 'customer_id' => $customer->id ?? null, 'countries' => CountryRepo::all(), 'payments' => $payments, 'carts' => $carts diff --git a/resources/beike/admin/views/pages/customers/form.blade.php b/resources/beike/admin/views/pages/customers/form.blade.php index 1dd22676..e3112ffa 100644 --- a/resources/beike/admin/views/pages/customers/form.blade.php +++ b/resources/beike/admin/views/pages/customers/form.blade.php @@ -3,7 +3,7 @@ @section('title', '顾客管理') @section('content') -