修复更新逻辑创建目录

This commit is contained in:
2023-12-08 15:05:10 +08:00
parent 08df3250cf
commit 69a090f6e0
2 changed files with 3 additions and 3 deletions

View File

@@ -248,6 +248,7 @@ class AdminUpdateServiceBase
$now_file_path = $now_dir . '/' . $file_path;
$last_file_path = $last_version_dir . '/' . $file_path;
PathTools::intiDir($now_file_path);
if ($type == 'delete') {
$output->writeln('删除文件' . $now_file_path);
unlink($now_file_path);
@@ -261,7 +262,6 @@ class AdminUpdateServiceBase
}
// 检测now的composer依赖和最新的composer依赖
$last_composer_json = file_get_contents($last_version_dir . '/composer.json');
$output->writeln($last_composer_json);