移除原因
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user