login_white = array();//登录白名单 $this->check_status = array();//用户状态校验 $this->check_mobile = array();//需要手机号 $this->check_headimg = array();//授权微信信息 $this->load->model('app/paic/app_paic_users_model'); } //获取车系 protected function get() { $page = $this->input_param('page'); $size = $this->input_param('size'); $keyword = $this->input_param('keyword'); !$page && $page = 1; !$size && $size = 100; $where = [ 'status' => App_paic_users_model::STATUS_NORMAL ]; if ($keyword) { $where["name like '%{$keyword}%'"] = null; } $count = $this->app_paic_users_model->count($where); $list = $this->app_paic_users_model->select($where, 'id desc', $page, $size, 'id,name'); $data = [ 'list' => $list, 'total' => $count ]; return $data; } }