作者 开飞机的舒克

接口优化

... ... @@ -126,7 +126,9 @@ class Activity extends Api
->where('campus_id',$cid)
->select();
foreach ($data as $k => $v){
$data[$k]['holdtime'] = date('Y-m-d',$v['holdtime']);
$data[$k]['campus_title'] = db('campus')->where('id',$v['campus_id'])->value('title');
$data[$k]['ronda_title'] = $v['title'];
$data[$k]['ronda_holdtime'] = date('Y-m-d',$v['holdtime']);
$data[$k]['images'] = cdnurl($v['images'],true);
$data[$k]['details'] = strip_tags($v['details']);
}
... ...
... ... @@ -6324,7 +6324,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-04-20 10:37:30 <a href="./" target="_blank">校园活动</a>
Generated on 2023-04-21 11:06:07 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...