From 568864e0089d14c47a2f682ce50536c6d6841bae Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 12 Sep 2017 15:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=88=86=E9=A1=B5=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Paginator.php b/library/think/Paginator.php index 39d2f644..4f65840e 100644 --- a/library/think/Paginator.php +++ b/library/think/Paginator.php @@ -141,7 +141,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J */ public static function getCurrentPage($varPage = 'page', $default = 1) { - $page = (int) Request::instance()->request($varPage); + $page = (int) Request::instance()->param($varPage); if (filter_var($page, FILTER_VALIDATE_INT) !== false && $page >= 1) { return $page;