修正softDelete

This commit is contained in:
thinkphp
2016-08-20 21:24:33 +08:00
parent 1e0ca66150
commit b627a645ca

View File

@@ -120,7 +120,7 @@ trait SoftDelete
protected static function base($query) protected static function base($query)
{ {
if (static::$deleteTime) { if (static::$deleteTime) {
$query->where(static::$deleteTime, 'exp', 'null'); $query->where(static::$deleteTime, 'exp', 'is null');
} }
} }