diff --git a/application/api/controller/Live.php b/application/api/controller/Live.php index 3b05ca4d..a119c59c 100644 --- a/application/api/controller/Live.php +++ b/application/api/controller/Live.php @@ -40,15 +40,15 @@ class Live extends Api return $this->selectpage(); } + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); -// $where = array_merge($where,array( -// 'status'=>1, -// )); -// $where = array( -// 'status'=>1, -// ); + if ($this->request->param("status")) { + $where['status'] = $this->request->param("status"); + } + + $total = $this->model ->where($where)