更新细节
This commit is contained in:
parent
7e34baa0ba
commit
b13da70dae
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue