This commit is contained in:
knowpia
2022-10-10 08:45:41 +08:00
parent 220e7c56b1
commit 1b157c6e6d

View File

@@ -49,14 +49,15 @@ class Ranking
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);
}