作者 开飞机的舒克

网页大屏接口优化

... ... @@ -36,12 +36,12 @@ class Screen extends Api
$list['time'] = date('Y-m-d H:i:s',time());
$list['team_rank'] = \db('team_score')
->where('ronda_id',$data['ronda_id'])
->field('score as sum_score,team_id')
// ->field('score as sum_score,team_id')
->order('score DESC')
->paginate(4)
->each(function ($item,$key){
$item['team_name'] = db('team')->where('id',$item['team_id'])->value('title');
$item['score'] = $item['sum_score'];
$item['team_score'] = $item['score'];
$item['study'] = db('study_ronda_score l')
->join('study s','l.sid = s.id')
->where('l.team_id',$item['team_id'])
... ...
... ... @@ -6324,7 +6324,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-04-21 11:12:27 <a href="./" target="_blank">校园活动</a>
Generated on 2023-04-21 17:22:14 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...