From b54442a42fbfa78590173f7d638f61357316ec87 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 12 Jan 2017 12:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=8D=95=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A4=9A=E6=AC=A1Or=E6=9F=A5=E8=AF=A2=E6=83=85?= =?UTF-8?q?=E5=86=B5=E7=9A=84=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 9c796081..1ef97571 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1169,7 +1169,8 @@ class Query $this->options['multi'][$logic][$field][] = $where[$field]; } elseif (is_null($condition)) { // 字段相等查询 - $where[$field] = ['eq', $op]; + $where[$field] = ['eq', $op]; + $this->options['multi'][$logic][$field][] = $where[$field]; } else { $where[$field] = [$op, $condition, isset($param[2]) ? $param[2] : null]; if ('exp' == strtolower($op) && isset($param[2]) && is_array($param[2])) {