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