Merge pull request !21 from Chao Xing/xingchao
pull/58/head
Chao Xing 2018-05-06 03:56:55 +08:00
commit 0a344f8dda
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,15 @@ class Live extends Api
}
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
// $where = array_merge($where,array(
// 'status'=>1,
// ));
// $where = array(
// 'status'=>1,
// );
$total = $this->model
->where($where)
->order($sort, $order)
@ -55,6 +64,7 @@ class Live extends Api
$result = array("total" => $total, "rows" => $list);
return json($result);
// return ($where);
// }