From 5ef2af8c558174d0b5be663f14e13d3fbfe2954e Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 30 Mar 2021 18:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=90=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/admin/controller/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/admin/controller/AuthController.php b/crmeb/app/admin/controller/AuthController.php index dc0eccd73..d6c9f4d10 100644 --- a/crmeb/app/admin/controller/AuthController.php +++ b/crmeb/app/admin/controller/AuthController.php @@ -61,7 +61,7 @@ class AuthController extends SystemBasic if ($module === null) $module = app('http')->getName(); if ($controller === null) $controller = $this->request->controller(); if ($action === null) $action = $this->request->action(); - if (!count($route)) $route = $this->request->param(); + if (!count($route)) $route = $this->request->route(); array_shift($route); if (in_array(strtolower($controller), $this->skipLogController, true)) return true; $nowAuthName = SystemMenus::getAuthName($action, $controller, $module, $route);