mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 22:55:36 +00:00
feat:模块安装纯净模式实现
This commit is contained in:
parent
44913d4dd2
commit
063e01f41d
@ -694,7 +694,7 @@ class Manage
|
||||
RecursiveIteratorIterator::SELF_FIRST
|
||||
) as $item
|
||||
) {
|
||||
$destDirItem = $destDir . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
|
||||
$destDirItem = Filesystem::fsFit($destDir . DIRECTORY_SEPARATOR . str_replace($baseDir, '', $item->getPathname()));
|
||||
if ($item->isDir()) {
|
||||
Filesystem::mkdir($destDirItem);
|
||||
} else {
|
||||
@ -704,6 +704,10 @@ class Manage
|
||||
}
|
||||
}
|
||||
}
|
||||
// 纯净模式
|
||||
if (Config::get('buildadmin.module_pure_install')) {
|
||||
Filesystem::delDir($baseDir);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -24,6 +24,8 @@ return [
|
||||
'auto_sort_eq_weight' => false,
|
||||
// 开启前台会员中心
|
||||
'open_member_center' => true,
|
||||
// 模块纯净安装(安装时移动模块文件而不是复制)
|
||||
'module_pure_install' => true,
|
||||
// 点选验证码配置
|
||||
'click_captcha' => [
|
||||
// 模式:text=文字,icon=图标(若只有icon则适用于国际化站点)
|
||||
|
Loading…
Reference in New Issue
Block a user