This commit is contained in:
wuyanwen
2020-03-10 16:50:04 +08:00
parent a90fd31b87
commit 29482f4e31
2 changed files with 144 additions and 1 deletions

View File

@@ -265,7 +265,8 @@ class CatchAdmin
$routeFiles = [];
foreach (self::getModulesDirectory() as $module) {
$moduleInfo = self::getModuleInfo($module);
if (!in_array($moduleInfo['alias'], ['login']) && file_exists($module . 'route.php')) {
$module = $moduleInfo['alias'] ?? '';
if (!in_array($module, ['login']) && file_exists($module . 'route.php')) {
$routeFiles[] = $module . 'route.php';
}
}