mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-15 02:52:49 +00:00
0.0.7
This commit is contained in:
parent
3e5efcaa0a
commit
0b4b28574c
@ -269,11 +269,12 @@ class UpgradeService extends BaseAdminService
|
||||
|
||||
// 覆盖文件
|
||||
if (is_dir($code_dir . $version_no)) {
|
||||
dir_copy($code_dir . $version_no, $this->root_path);
|
||||
}
|
||||
|
||||
if ($addon != AddonDict::FRAMEWORK_KEY) {
|
||||
(new CoreAddonInstallService($addon))->installDir();
|
||||
if ($addon != AddonDict::FRAMEWORK_KEY) {
|
||||
dir_copy($code_dir . $version_no, $this->root_path . 'niucloud' . DIRECTORY_SEPARATOR . 'addon' . DIRECTORY_SEPARATOR . $addon);
|
||||
(new CoreAddonInstallService($addon))->installDir();
|
||||
} else {
|
||||
dir_copy($code_dir . $version_no, $this->root_path);
|
||||
}
|
||||
}
|
||||
|
||||
$upgrade_file_dir = 'v' . str_replace('.', '', $version_no);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user