mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进软删除的destory方法
This commit is contained in:
@@ -83,7 +83,10 @@ trait SoftDelete
|
||||
} elseif ($data instanceof \Closure) {
|
||||
call_user_func_array($data, [ & $query]);
|
||||
$data = null;
|
||||
} elseif (is_null($data)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
$resultSet = $query->select($data);
|
||||
$count = 0;
|
||||
if ($resultSet) {
|
||||
|
||||
Reference in New Issue
Block a user