mirror of https://gitee.com/karson/fastadmin.git
commit
f57eb0be7c
|
|
@ -35,8 +35,7 @@ class Live extends Api
|
|||
// if ($this->request->isAjax())
|
||||
// {
|
||||
//如果发送的来源是Selectpage,则转发到Selectpage
|
||||
if ($this->request->request('pkey_name'))
|
||||
{
|
||||
if ($this->request->request('pkey_name')) {
|
||||
return $this->selectpage();
|
||||
}
|
||||
|
||||
|
|
@ -45,11 +44,12 @@ class Live extends Api
|
|||
|
||||
|
||||
if ($this->request->param("status")) {
|
||||
$where['status'] = $this->request->param("status");
|
||||
$where = array(
|
||||
'status' => $this->request->param("status"),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$total = $this->model
|
||||
->where($where)
|
||||
->order($sort, $order)
|
||||
|
|
|
|||
Loading…
Reference in New Issue