This commit is contained in:
knowpia
2022-10-10 08:55:51 +08:00
parent 1b157c6e6d
commit 6025cc69c3
2 changed files with 6 additions and 2 deletions

View File

@@ -44,14 +44,16 @@ class Student
if (empty($list)) {
return show("获取成功", SUCCESS_CODE, $result);
}
$result = StudentToArray($list);
if ($list->currentPage() < $list->lastPage()) {
$result['lastIndex'] = $lastIndex + 1;
} else {
$result['lastIndex'] = 0;
}
$result = StudentToArray($list);
return show(SUCCESS_MESSAGE, SUCCESS_CODE, $result);
}