isAjax()) { $page = input('param.page'); $limit = input('param.limit'); $where = []; if (input('param.name')) { $where[] = ['kf_name', '=', input('param.name')]; } if ( input('param.status') == 1 || input('param.status') ==2) { $where[] = ['kf_status', '=', input('param.status')]; } if ( input('param.online') == 1 || input('param.online') ==2) { $where[] = ['online_status', '=', input('param.online')]; } if (input('param.merchant')) { $where[] = ['mc_id', '=', input('param.merchant')]; } $list = KefuLogic::getKefuByPage($where, '*', $limit); return $this->response->api($list->items() ? $list->items() : '',self::SUCCESS_CODE,'操作成功',['count'=>$list->total()]); } return $this->fetch(); } }