作者 开飞机的舒克

修改接口

... ... @@ -15,6 +15,17 @@ class Activity extends Api
/**
* @ApiTitle (活动首页)
* @ApiMethod (POST)
* @ApiReturn ({"code":状态码,
"msg":"提示信息"
"time": "时间戳",
"data": [
"id": 1,
"title": "活动名称",
"images": "活动图片",
"depict": "描述",
]
},
*/
public function index()
{
... ...
... ... @@ -211,7 +211,7 @@ class Bind extends Api
->where(['campus_id'=>$campus_id,'study_id'=>$sid])
->paginate(3,false)
->each(function ($item,$key){
$item['item_ronda'] = \db('item i')
$item['item_radar'] = \db('item i')
->join('radar r','i.radar_id = r.id')
->where('i.id',$item['item_id'])
->field('i.radar_id,r.title')
... ...
... ... @@ -117,7 +117,6 @@ class Index extends Api
/**
* @ApiTitle (战队排行榜)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="campus", type="string", required=true, description="校区id[必填]")
* @ApiParams (name="row", type="string", required=false, description="每页显示行数[非必填]")
* @ApiParams (name="page", type="string", required=false, description="当前页[非必填]")
... ...