mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update Update.php
This commit is contained in:
parent
1bfd52c23b
commit
ab9c5206fb
@ -43,7 +43,7 @@ class Update extends Controller
|
||||
{
|
||||
$this->file = $this->app->getRootPath() . decode(input('encode', '0'));
|
||||
file_exists($this->file) ? $this->success('读取文件成功!', [
|
||||
'format' => 'base64', 'content' => base64_encode(file_get_contents($this->file)),
|
||||
'content' => base64_encode(file_get_contents($this->file)),
|
||||
]) : $this->error('获取文件内容失败!');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user