更新细节

This commit is contained in:
yaooo 2023-11-17 16:01:34 +08:00
parent b13da70dae
commit 1074b433bb
1 changed files with 0 additions and 1 deletions

View File

@ -41,7 +41,6 @@ class InitMiddleware
try { try {
$controller = str_replace('.', '\\', $request->controller()); $controller = str_replace('.', '\\', $request->controller());
$controller = '\\app\\adminapi\\controller\\' . $controller . 'Controller'; $controller = '\\app\\adminapi\\controller\\' . $controller . 'Controller';
halt($controller);
$controllerClass = invoke($controller); $controllerClass = invoke($controller);
if (($controllerClass instanceof BaseAdminController) === false) { if (($controllerClass instanceof BaseAdminController) === false) {
throw new ControllerExtendException($controller, '404'); throw new ControllerExtendException($controller, '404');