From 722b8cfa7f7fed0ce6139a545e8cc5c40ae070b3 Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Sat, 14 Dec 2019 17:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchAdmin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extend/catcher/CatchAdmin.php b/extend/catcher/CatchAdmin.php index 6044e6f..87178f7 100644 --- a/extend/catcher/CatchAdmin.php +++ b/extend/catcher/CatchAdmin.php @@ -280,8 +280,11 @@ class CatchAdmin { $routeFiles = []; foreach (self::getModulesDirectory() as $module) { - if (file_exists($module . 'route.php')) { - $routeFiles[] = $module . 'route.php'; + $moduleInfo = self::getModuleInfo($module); + if (!in_array($moduleInfo['alias'], ['login'])) { + if (file_exists($module . 'route.php')) { + $routeFiles[] = $module . 'route.php'; + } } } $routes = '';