From 151052cd3fa25a03c5f483068b4fe8a0008c394d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 7 May 2018 22:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Builder.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index a841dba2..30016f59 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -269,9 +269,7 @@ abstract class Builder foreach ($val as $field => $value) { if ($value instanceof Expression) { $str[] = ' ' . $key . ' ( ' . $field . ' ' . $value->getValue() . ' )'; - continue; - } - if ($value instanceof \Closure) { + } elseif ($value instanceof \Closure) { // 使用闭包查询 $query = new Query($this->connection); call_user_func_array($value, [ & $query]);