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(), ]; }