修改更新的逻辑

This commit is contained in:
2023-12-08 16:57:41 +08:00
parent 8538ada5f0
commit 43215291e0

View File

@@ -106,9 +106,9 @@ class AdminUpdateServiceBase
// 完全跳过runtime、vendor、.git目录 // 完全跳过runtime、vendor、.git目录
$ignore_prefix = [ $ignore_prefix = [
'runtime' => 'recursive', 'runtime',
'vendor' => 'recursive', 'vendor',
'.git' => 'recursive', '.git',
]; ];
$filter_files_function = function (StorageAttributes $attributes) use ($ignore_prefix) { $filter_files_function = function (StorageAttributes $attributes) use ($ignore_prefix) {
@@ -210,7 +210,6 @@ class AdminUpdateServiceBase
} }
if ($this->testIsOptionalFiles($file_path)) { if ($this->testIsOptionalFiles($file_path)) {
if ($type == 'delete') { if ($type == 'delete') {
// 最新版本没有,但是现存版本有,有可能是新版本删除的,也有可能是用户增加的 // 最新版本没有,但是现存版本有,有可能是新版本删除的,也有可能是用户增加的