作者 开飞机的舒克

修改接口

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