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