作者 开飞机的舒克

接口优化

... ... @@ -102,7 +102,11 @@ class Activity extends Api
->join('campus c','c.id = r.campus_id')
->field('r.id as rid,c.title as campus_title,r.title as ronda_title,r.holdtime as ronda_holdtime')
->where('r.campus_id',$cid)
->paginate(10,false);
->paginate(10,false)
->each(function ($item,$key){
$item['holdtime'] = date('Y-m-d',$item['ronda_holdtime']);
return $item;
});
$this->success('获取场次列表成功', $data);
}
... ...
... ... @@ -5200,7 +5200,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-17 13:51:47 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-17 13:54:26 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...