...
|
...
|
@@ -178,6 +178,7 @@ class Index extends Api |
|
|
$res = db('study_score_log')->where('campus_id',$item['campus_id'])->sum('score');
|
|
|
$item['score'] = floor($item['score']);
|
|
|
$item['percent'] = round(($item['score']*0.6) / $res * 100,2);
|
|
|
return $item;
|
|
|
});
|
|
|
//最终显示
|
|
|
$this->success('战队排行榜', $data);
|
...
|
...
|
|