移除原因

This commit is contained in:
2025-11-17 10:05:29 +08:00
parent 515a16a633
commit cb1b208190
4 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -21,12 +21,13 @@ class CustomerLogic
return $res;
}
public function forceDelete(int $id)
public function forceDelete(int $id ,string $status_desc = '')
{
$customer = Customer::withTrashed()->find($id);
//强制删除
// $res = $customer->forceDelete();
$customer->status = 3;
$customer->status_desc = $status_desc;
$res = $customer->save();
return $res;
}