改名
This commit is contained in:
@@ -481,13 +481,12 @@ class Router extends Application implements RouterInterface
|
||||
return send(self::NOT_FOUND, 404);
|
||||
}
|
||||
send($node->dispatch(), 200);
|
||||
// if ($node->hasAfter()) {
|
||||
// $node->afterDispatch(\request());
|
||||
// }
|
||||
if ($node->hasAfter()) {
|
||||
$node->afterDispatch(\request());
|
||||
}
|
||||
} catch (ExitException $exception) {
|
||||
send($exception->getMessage(), $exception->getCode());
|
||||
} catch (\Throwable $exception) {
|
||||
var_dump($exception->getMessage());
|
||||
send($this->exception($exception), 200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user