This commit is contained in:
flucout
2024-09-19 21:35:42 +08:00
parent 247e486181
commit d80c0e9e44
12 changed files with 118 additions and 27 deletions

View File

@@ -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';