...
|
...
|
@@ -54,7 +54,6 @@ class Activity extends Api |
|
|
* @ApiTitle (项目校区)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiParams (name="id", type="interge", required=true, description="活动id")
|
|
|
* @ApiParams (name="page", type="string", required=false, description="分页")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, description="状态码")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, description="提示语")
|
|
|
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
|
...
|
...
|
@@ -72,7 +71,7 @@ class Activity extends Api |
|
|
->join('school s','s.id = c.school_id')
|
|
|
->field('c.*,a.title as activity_name,s.title as school_name')
|
|
|
->where('c.activity_id',$param['id'])
|
|
|
->paginate(10,false,['page'=>$param['page']]);
|
|
|
->select();
|
|
|
if (empty($data)) {
|
|
|
$this->error('当前还没有校区', ['status' => 2]);
|
|
|
}
|
...
|
...
|
|