From e4c0e406cfa17df5b4c6bd5ed2dfba1f0f0e0149 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 28 Dec 2016 17:52:38 +0800 Subject: [PATCH] =?UTF-8?q?exp=E6=9F=A5=E8=AF=A2=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E7=BB=91=E5=AE=9A=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index af09a975..f1ad2fb7 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -957,6 +957,10 @@ class Query $where[$field] = ['eq', $op]; } else { $where[$field] = [$op, $condition]; + if ('exp' == strtolower($op) && isset($param[2]) && is_array($param[2])) { + // 参数绑定 + $this->bind($param[2]); + } // 记录一个字段多次查询条件 $this->options['multi'][$field][] = $where[$field]; }