Update Update.php

This commit is contained in:
Anyon 2019-12-02 14:17:13 +08:00
parent cd174ad1b7
commit ec1f94baa2

View File

@ -25,17 +25,6 @@ use think\admin\service\InstallService;
*/
class Update extends Controller
{
/**
* 获取文件列表
*/
public function tree()
{
$this->rules = unserialize($this->request->post('rules', 'a:0:{}', ''));
$this->ignore = unserialize($this->request->post('ignore', 'a:0:{}', ''));
$this->success('获取文件列表成功!', InstallService::instance()->getList($this->rules, $this->ignore));
}
/**
* 读取文件内容
*/
@ -51,4 +40,14 @@ class Update extends Controller
}
}
/**
* 获取文件列表
*/
public function tree()
{
$this->rules = unserialize($this->request->post('rules', 'a:0:{}', ''));
$this->ignore = unserialize($this->request->post('ignore', 'a:0:{}', ''));
$this->success('获取文件列表成功!', InstallService::instance()->getList($this->rules, $this->ignore));
}
}