fix bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user