作者 开飞机的舒克

首页项目校区展示问题

... ... @@ -292,7 +292,7 @@ class Bind extends Api
$data['item'] = $model->where('campus_id',$cid)->where('study_id',$sid)->field('radar_id,score')
->paginate(9,false)
->each(function ($item,$key){
$item['radar'] = \db('radar')->where('id',$item['radar_id'])->value('title');
$item['title'] = \db('radar')->where('id',$item['radar_id'])->value('title');
$item['score'] = $item['score'];
return $item;
});
... ...