改进Query类的查询方法

This commit is contained in:
thinkphp
2016-08-31 17:52:32 +08:00
parent a98bc943fc
commit 655e6fb38f

View File

@@ -908,9 +908,7 @@ class Query
$where = $field;
} elseif ($field) {
// 字符串查询
$where[] = ['exp', $field];
} else {
$where = '';
$where[$field] = ['null', ''];
}
} elseif (is_array($op)) {
$where[$field] = $param;