From b387cc547ea0c8fa9eb9bb0dfa88943778232999 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 22 Jan 2024 17:56:50 +0800 Subject: [PATCH] fixed --- app/adminapi/controller/TaskController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/adminapi/controller/TaskController.php b/app/adminapi/controller/TaskController.php index 2834eb01..07c10825 100644 --- a/app/adminapi/controller/TaskController.php +++ b/app/adminapi/controller/TaskController.php @@ -217,7 +217,9 @@ class TaskController extends BaseAdminController public function taskList() { $param = $this->request->param(); - [$page, $limit] = $this->getPage(); + $page = $param['page_no'] ?? 1; + $limit = $param['page_size'] ?? 15; +// [$page, $limit] = $this->getPage(); $list = Task::with(['directorInfo']) ->page($page, $limit) ->order(['id' => 'desc'])