作者 开飞机的舒克

接口优化

... ... @@ -261,6 +261,7 @@ class Bind extends Api
$data['item'] = \db('study_score_log')
->distinct('item_id')
->field('item_id,SUM(score) as sum_score')
->order('sum_score')
->group('item_id')
->where(['campus_id' => $cid, 'study_id' => $sid])
->paginate(3)
... ...
... ... @@ -1148,6 +1148,7 @@
"time": "时间戳",
"data": {
"id": '学生id',
"avatar": "头像",
"name": "学生姓名",
"score_num": "学生分数",
"rank": "排名"
... ... @@ -5424,7 +5425,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-20 14:13:45 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-21 09:45:51 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...