改进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; $where = $field;
} elseif ($field) { } elseif ($field) {
// 字符串查询 // 字符串查询
$where[] = ['exp', $field]; $where[$field] = ['null', ''];
} else {
$where = '';
} }
} elseif (is_array($op)) { } elseif (is_array($op)) {
$where[$field] = $param; $where[$field] = $param;