作者 开飞机的舒克

接口优化

... ... @@ -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);
... ...
... ... @@ -4970,7 +4970,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-17 09:40:00 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-17 09:42:35 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...