修正软删除方法 改进模板session和cookie变量获取

This commit is contained in:
thinkphp
2016-09-30 21:32:23 +08:00
parent 497c13f127
commit 4695dd45d4
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ trait SoftDelete
public static function onlyTrashed()
{
$model = new static();
$field = $this->getDeleteTimeField();
$field = $model->getDeleteTimeField();
return $model->db()->where($field, 'exp', 'is not null');
}