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