|
@@ -1584,9 +1584,10 @@ class Index extends Api
|
|
|
$list = list_domain_image($list, ['avatar']);
|
|
|
if ($list) {
|
|
|
$hu_rank = Db::name('rank');
|
|
|
- foreach ($list as &$v) {
|
|
|
+ foreach ($list as $k => &$v) {
|
|
|
$rank_name = $hu_rank->where(['id' => $v['rank_id']])->value('name');
|
|
|
$v['rank_name'] = $rank_name ? : '';
|
|
|
+ $v['rank'] = $this->page * $this->pagenum + $k + 1;
|
|
|
}
|
|
|
}
|
|
|
|