mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进where方法传空值
This commit is contained in:
@@ -462,9 +462,11 @@ class Query
|
||||
if (is_array($field)) {
|
||||
// 数组批量查询
|
||||
$where = $field;
|
||||
} else {
|
||||
} elseif ($field) {
|
||||
// 字符串查询
|
||||
$where[] = ['exp', $field];
|
||||
} else {
|
||||
$where = '';
|
||||
}
|
||||
} elseif (is_array($op)) {
|
||||
$param = func_get_args();
|
||||
|
||||
Reference in New Issue
Block a user