feat: 优化更新逻辑设置think文件为必选文件

This commit is contained in:
augushong
2025-03-28 11:04:30 +08:00
parent 4935f06200
commit f312519d37

View File

@@ -375,6 +375,16 @@ class AdminUpdateServiceBase
}
}
$required_file = [
'think'
];
foreach ($required_file as $file) {
if($file == $file_path){
return false;
}
}
// 如果file_path不存在目录分隔符则是可选更新的文件根目录下的文件
if (strpos($file_path, '/') === false) {
return true;