作者 开飞机的舒克

网页大屏优化

... ... @@ -36,11 +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')
->order('score DESC')
->paginate(4)
->each(function ($item,$key){
$item['team_name'] = db('team')->where('id',$item['team_id'])->value('title');
$item['team_score'] = $item['score'];
$item['team_score'] = $item['sum_score'];
$item['study'] = db('study_ronda_score l')
->join('study s','l.sid = s.id')
->where('l.team_id',$item['team_id'])
... ...