From 9557929665f2292f584a41b1a400d3ca50529c2d Mon Sep 17 00:00:00 2001 From: xingchao <1363688001@qq.com> Date: Sun, 6 May 2018 10:49:16 +0800 Subject: [PATCH] 'stream_addr' --- application/api/controller/Live.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)