mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-24 14:04:07 +08:00
fixed shit
This commit is contained in:
parent
95890dce1a
commit
de509dbf8a
@ -26,11 +26,12 @@
|
||||
|
||||
$zip = new ZipArchive();
|
||||
$extract_dir = BASE_DIR."/setup/update_cache/{$updater->latest_version}";
|
||||
if ($zip->open($zip_path) === true) {
|
||||
$res = $zip->open($zip_path);
|
||||
if ($res === true) {
|
||||
echo "<p>正在解压更新包</p>";
|
||||
$zip->extractTo($extract_dir);
|
||||
} else {
|
||||
exit('<p>更新包解压缩失败。详细信息:'.$zip.'</p>');
|
||||
exit('<p>更新包解压缩失败。详细信息:'.$res.'</p>');
|
||||
}
|
||||
$zip->close();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user