Update Update.php

This commit is contained in:
Anyon 2019-11-04 18:59:20 +08:00
parent ab9c5206fb
commit 861d965974

View File

@ -44,7 +44,7 @@ class Update extends Controller
$this->file = $this->app->getRootPath() . decode(input('encode', '0'));
file_exists($this->file) ? $this->success('读取文件成功!', [
'content' => base64_encode(file_get_contents($this->file)),
]) : $this->error('取文件内容失败!');
]) : $this->error('取文件内容失败!');
}
}