From ea83a28d7ed9c58805da59949483e016e7a87064 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 12 May 2017 11:50:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=88=86=E9=A1=B5=E7=B1=BB?= =?UTF-8?q?=E7=9A=84toarray=E6=96=B9=E6=B3=95=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=80=BB=E9=A1=B5=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Paginator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Paginator.php b/library/think/Paginator.php index 92d70f04..5a8fa20e 100644 --- a/library/think/Paginator.php +++ b/library/think/Paginator.php @@ -366,6 +366,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J 'total' => $total, 'per_page' => $this->listRows(), 'current_page' => $this->currentPage(), + 'last_page' => $this->lastPage, 'data' => $this->items->toArray(), ]; }