fixed bug

This commit is contained in:
wuyanwen 2020-03-11 14:14:27 +08:00
parent 49a4e56f48
commit 4271a70b16

View File

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