app->getRootPath() . decode(input('encode', '0')))) { $this->success('读取文件成功!', ['content' => base64_encode(file_get_contents($file))]); } else { $this->error('读取文件内容失败!'); } } /** * 获取文件列表 */ public function tree() { $this->success('获取文件列表成功!', InstallService::instance()->getList( unserialize($this->request->post('rules', 'a:0:{}', '')), unserialize($this->request->post('ignore', 'a:0:{}', '')) )); } }