Merge branch 'develop'
This commit is contained in:
@@ -13,6 +13,10 @@ class CustomerLogic
|
||||
$customer->status = $status;
|
||||
$res = $customer->save();
|
||||
|
||||
if($status == 1){
|
||||
$customer->restore();
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
@@ -20,7 +24,9 @@ class CustomerLogic
|
||||
{
|
||||
$customer = Customer::withTrashed()->find($id);
|
||||
//强制删除
|
||||
$res = $customer->forceDelete();
|
||||
// $res = $customer->forceDelete();
|
||||
$customer->status = 3;
|
||||
$res = $customer->save();
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user