|
@@ -116,6 +116,7 @@ class Screen extends Backend |
|
@@ -116,6 +116,7 @@ class Screen extends Backend |
116
|
->join('team t','t.id = s.team_id')
|
116
|
->join('team t','t.id = s.team_id')
|
117
|
->field('s.name,s.earn_score,t.title,t.id')
|
117
|
->field('s.name,s.earn_score,t.title,t.id')
|
118
|
->order('s.earn_score','desc')
|
118
|
->order('s.earn_score','desc')
|
|
|
119
|
+ ->limit(40)
|
119
|
->select();
|
120
|
->select();
|
120
|
$list = [];
|
121
|
$list = [];
|
121
|
foreach ($res as $k => $v){
|
122
|
foreach ($res as $k => $v){
|
|
@@ -123,6 +124,7 @@ class Screen extends Backend |
|
@@ -123,6 +124,7 @@ class Screen extends Backend |
123
|
'name' => $v['name'],
|
124
|
'name' => $v['name'],
|
124
|
'score' => $v['earn_score'],
|
125
|
'score' => $v['earn_score'],
|
125
|
'title'=>$v['title'],
|
126
|
'title'=>$v['title'],
|
|
|
127
|
+ 'rank'=> $k+1
|
126
|
];
|
128
|
];
|
127
|
}
|
129
|
}
|
128
|
$this->view->assign("row", $list);
|
130
|
$this->view->assign("row", $list);
|