From 80c82571b0b77d2bc19a3b9eb19d2e50b75f80a8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 12 Oct 2017 14:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3chunk=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=AF=B9=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index e30b7562..b32bff90 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2608,7 +2608,7 @@ class Query return false; } $end = end($resultSet); - $lastId = is_array($end) ? $end[$key] : $end->$key; + $lastId = is_array($end) ? $end[$key] : $end->getData($key); $resultSet = $this->options($options) ->limit($count) ->bind($bind)