系统安全提示!

This commit is contained in:
2020-04-14 14:53:27 +08:00
parent 84b9563704
commit 6b9298df5d
2 changed files with 14 additions and 0 deletions

View File

@@ -21,6 +21,12 @@ class Index extends Base {
* @return html [description]
*/
public function index() {
//判断安装文件是否删除
$this->data['install_file'] = false;
$file = $this->app->getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'install.php';
if (is_file($file)) {
$this->data['install_file'] = true;
}
return $this->fetch();
}