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