作者 开飞机的舒克

获取项目

... ... @@ -156,14 +156,8 @@ class Activity extends Api
if (empty($rid)) {
$this->error('参数错误', ['status' => 2]);
}
$data = db('item i')
->join('ronda r','r.id = i.ronda_id')
->join('campus c','r.campus_id = c.id')
->field('i.*,c.title as campus_title')
->where([
'i.ronda_id' => $rid
])
->paginate(10,false);
$model = new Item();
$data = collection($model->whereIn('ronda_ids',$rid)->select())->toArray();
$this->success('获取项目列表成功', $data);
}
... ...
... ... @@ -6324,7 +6324,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-04-13 08:39:28 <a href="./" target="_blank">校园活动</a>
Generated on 2023-04-13 09:24:23 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...