model = new companyModel(); } public function list() { $list = $this->model->where('status', 1)->paginate(10); foreach ($list as &$row) { $row['image'] = formatImage($row['image']); } $this->success('资质列表', $list); } }