mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进
This commit is contained in:
@@ -106,7 +106,7 @@ trait SoftDelete
|
||||
// 恢复删除
|
||||
$name = static::$deleteTime;
|
||||
$this->change[] = $name;
|
||||
$this->data[$name] = ['exp', 'null'];
|
||||
$this->data[$name] = null;
|
||||
return $this->isUpdate()->save();
|
||||
}
|
||||
return false;
|
||||
@@ -120,7 +120,7 @@ trait SoftDelete
|
||||
protected static function base($query)
|
||||
{
|
||||
if (static::$deleteTime) {
|
||||
$query->where(static::$deleteTime, 'exp', 'is null');
|
||||
$query->where(static::$deleteTime, 'null');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user