...
|
...
|
@@ -78,7 +78,7 @@ class Activity extends Api |
|
|
/**
|
|
|
* @ApiTitle (场次筛选)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiParams (name="id", type="string", required=false, description="校区id")
|
|
|
* @ApiParams (name="cid", type="string", required=false, description="校区id")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, description="状态码")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, description="提示语")
|
|
|
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
|
...
|
...
|
@@ -94,14 +94,14 @@ class Activity extends Api |
|
|
*/
|
|
|
public function getRonda()
|
|
|
{
|
|
|
$id = $this->request->param('id');
|
|
|
$cid = $this->request->param('cid');
|
|
|
if (empty($id)) {
|
|
|
$this->error('参数错误', ['status' => 2]);
|
|
|
}
|
|
|
$data = db('ronda r')
|
|
|
->join('campus c','c.id = r.campus_id')
|
|
|
->field('c.title as campus_title,r.title as ronda_title,r.holdtime as ronda_holdtime,r.id')
|
|
|
->where('r.campus_id',$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);
|
|
|
$this->success('获取场次列表成功', $data);
|
|
|
}
|
...
|
...
|
@@ -109,7 +109,7 @@ class Activity extends Api |
|
|
/**
|
|
|
* @ApiTitle (项目筛选)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiParams (name="id", type="string", required=false, description="场次id")
|
|
|
* @ApiParams (name="rid", type="string", required=false, description="场次id")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, description="状态码")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, description="提示语")
|
|
|
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
|
...
|
...
|
@@ -125,7 +125,7 @@ class Activity extends Api |
|
|
*/
|
|
|
public function getItem()
|
|
|
{
|
|
|
$id = $this->request->param('id');
|
|
|
$rid = $this->request->param('rid');
|
|
|
if (empty($id)) {
|
|
|
$this->error('参数错误', ['status' => 2]);
|
|
|
}
|
...
|
...
|
@@ -134,7 +134,7 @@ class Activity extends Api |
|
|
->join('campus c','r.campus_id as c.id')
|
|
|
->field('i.*,c.title as campus_title')
|
|
|
->where([
|
|
|
'i.ronda_id' => $id
|
|
|
'i.ronda_id' => $rid
|
|
|
])
|
|
|
->paginate(10,false);
|
|
|
$this->success('获取项目列表成功', $data);
|
...
|
...
|
@@ -143,7 +143,7 @@ class Activity extends Api |
|
|
/**
|
|
|
* @ApiTitle (场次详情)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiParams (name="id", type="string", required=false, description="场次id")
|
|
|
* @ApiParams (name="rid", type="string", required=false, description="场次id")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, description="状态码")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, description="提示语")
|
|
|
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
|
...
|
...
|
@@ -157,9 +157,9 @@ class Activity extends Api |
|
|
*/
|
|
|
public function getRondaDetails()
|
|
|
{
|
|
|
$id = $this->request->param('id');
|
|
|
$rid = $this->request->param('rid');
|
|
|
$data = db('ronda')
|
|
|
->where('id', $id)
|
|
|
->where('id', $rid)
|
|
|
->find();
|
|
|
$data['images'] = cdnurl($data['images'], true);
|
|
|
$this->success('获取场次详情成功', $data);
|
...
|
...
|
|