This commit is contained in:
2020-12-16 15:42:27 +08:00
parent cc59427f3b
commit 21c1aaa42c
2 changed files with 4 additions and 4 deletions
+3 -4
View File
@@ -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);
}
}