更新细节

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

View File

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