From fe8f51dd68bfcfa341793f1999f73804c12f47c2 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 15 Jun 2016 19:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E5=A4=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 190874e7..36a49fac 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1710,6 +1710,7 @@ class Query return $data->select(); } elseif ($data instanceof \Closure) { call_user_func_array($data, [ & $this]); + $data = []; } // 分析查询表达式 $options = $this->parseExpress(); @@ -1797,6 +1798,7 @@ class Query return $data->find(); } elseif ($data instanceof \Closure) { call_user_func_array($data, [ & $this]); + $data = []; } // 分析查询表达式 $options = $this->parseExpress();