mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-10 03:42:49 +08:00
feat: 优化更新逻辑设置think文件为必选文件
This commit is contained in:
@@ -375,6 +375,16 @@ class AdminUpdateServiceBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$required_file = [
|
||||||
|
'think'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($required_file as $file) {
|
||||||
|
if($file == $file_path){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 如果file_path不存在目录分隔符,则是可选更新的文件(根目录下的文件)
|
// 如果file_path不存在目录分隔符,则是可选更新的文件(根目录下的文件)
|
||||||
if (strpos($file_path, '/') === false) {
|
if (strpos($file_path, '/') === false) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user