作者 开飞机的舒克

后台修改

... ... @@ -85,11 +85,12 @@ class Activity extends Api
"code":"状态码",
"msg": "提示消息",
"data": {
"school": [学校]
"ronda": [
"item": 项目
"item_details": 项目详情
]
"campus_title": "校区名称",
"ronda_title": "场次",
"ronda_holdtime": "场次时间",
"title": "项目名称",
"images": "项目图片",
"details": "项目详情"
}
})
*/
... ... @@ -103,7 +104,7 @@ class Activity extends Api
->join('item_details d','d.item_id = i.id')
->join('ronda r','i.ronda_id = r.id')
->join('campus c','c.id = i.campus_id')
->field('c.title as campus_title,i.title,i.details,d.images,r.title as ronda_title,r.holdtime as ronda_holdtime')
->field('c.title as campus_title,r.title as ronda_title,r.holdtime as ronda_holdtime,i.title,d.images,i.details')
->where('i.campus_id',$id)
->paginate(10)
->each(function ($item,$key){
... ... @@ -124,11 +125,9 @@ class Activity extends Api
"code":"状态码",
"msg": "提示消息",
"data": {
"school_name": 校区信息{},
"ronda": 场次信息{
"data": [{
"item": 场次对应的项目信息{},
]}
"campus_title": "校区名称",
"images": "项目图片",
"details": "项目详情"
})
*/
public function getItemDetails()
... ... @@ -141,6 +140,6 @@ class Activity extends Api
->where('i.id', $id)
->find();
$data['images'] = cdnurl($data['images'], true);
$this->success('', $data);
$this->success('获取项目详情成功', $data);
}
}
\ No newline at end of file
... ...
... ... @@ -2161,11 +2161,12 @@
"code":"状态码",
"msg": "提示消息",
"data": {
"school": [学校]
"ronda": [
"item": 项目
"item_details": 项目详情
]
"campus_title": "校区名称",
"ronda_title": "场次",
"ronda_holdtime": "场次时间",
"title": "项目名称",
"images": "项目图片",
"details": "项目详情"
}
}</pre>
</div>
... ... @@ -2327,11 +2328,9 @@
"code":"状态码",
"msg": "提示消息",
"data": {
"school_name": 校区信息{},
"ronda": 场次信息{
"data": [{
"item": 场次对应的项目信息{},
]}
"campus_title": "校区名称",
"images": "项目图片",
"details": "项目详情"
}</pre>
</div>
</div>
... ... @@ -4814,7 +4813,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-13 09:52:10 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-13 09:57:22 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...