From 4271a70b16a4ffe5b45444be6a74fb3cb8ba6660 Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Wed, 11 Mar 2020 14:14:27 +0800 Subject: [PATCH] fixed bug --- extend/catcher/CatchAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/catcher/CatchAdmin.php b/extend/catcher/CatchAdmin.php index eb4993b..f786207 100644 --- a/extend/catcher/CatchAdmin.php +++ b/extend/catcher/CatchAdmin.php @@ -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'; } }