From 220f1df6ca798a637c0d12bc0544826ac079fe98 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Tue, 19 Aug 2025 16:36:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E7=A7=BB?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crmAdmin/controller/CustomerController.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/crmAdmin/controller/CustomerController.php b/app/crmAdmin/controller/CustomerController.php index 2f3ba2e..900046d 100644 --- a/app/crmAdmin/controller/CustomerController.php +++ b/app/crmAdmin/controller/CustomerController.php @@ -147,15 +147,18 @@ class CustomerController extends BaseController return $this->error('customer_id'.trans('not_null')); } - $where = [ - 'id' => $param['customer_id'], - ]; - $customer = Customer::where($where)->withTrashed()->first(); + $customer_id = explode(',', $param['customer_id']); + $customer = Customer::whereIn('id',$customer_id)->withTrashed()->first(); if(empty($customer)){ return $this->error( trans('fail')); } - //软删除 - $customer->status = 3; + if($param['scene'] == 'list'){ //管理端客户列表移除 + $customer->status = 4; + + }else{ //公海软删除 + $customer->status = 3; + + } $res = $customer->save(); $customer->delete();