From a4bc1e8e103fe57a1d38b84cedbd00a7f0722594 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 14 Aug 2025 19:11:00 +0800 Subject: [PATCH] 1 --- app/crm/controller/CustomerController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/crm/controller/CustomerController.php b/app/crm/controller/CustomerController.php index b00af0d..3b6e8ec 100644 --- a/app/crm/controller/CustomerController.php +++ b/app/crm/controller/CustomerController.php @@ -560,7 +560,7 @@ class CustomerController extends BaseController return $this->error( trans('user_none')); } - $query= Customer::whereIn('id',explode(',',$customerId)); + $query= Customer::withTrashed()->whereIn('id',explode(',',$customerId)); try { $customer = $query->get(); @@ -579,6 +579,8 @@ class CustomerController extends BaseController $inquiryLog->save(); } } + + $item->restore(); } $data = [