作者 开飞机的舒克

接口优化

... ... @@ -261,7 +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')
->order('sum_score','desc')
->group('item_id')
->where(['campus_id' => $cid, 'study_id' => $sid])
->paginate(3)
... ...