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