Explorar el Código

修改子管理员问题

evoxwht hace 4 años
padre
commit
5ef2af8c55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      crmeb/app/admin/controller/AuthController.php

+ 1 - 1
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);