mirror of
https://github.com/flucont/btcloud.git
synced 2025-10-18 09:23:53 +00:00
update
This commit is contained in:
@@ -139,6 +139,18 @@ class Api extends BaseController
|
||||
return $version;
|
||||
}
|
||||
|
||||
public function get_panel_version(){
|
||||
$version = config_get('new_version');
|
||||
$file = app()->getRootPath().'public/install/update/LinuxPanel-'.$version.'.zip';
|
||||
$hash = hash_file('sha256', $file);
|
||||
$data = [
|
||||
'version' => $version,
|
||||
'hash' => $hash,
|
||||
'update_time' => filemtime($file),
|
||||
];
|
||||
return json($data);
|
||||
}
|
||||
|
||||
//安装统计
|
||||
public function setup_count(){
|
||||
return 'ok';
|
||||
|
Reference in New Issue
Block a user