改名
This commit is contained in:
@@ -487,7 +487,8 @@ class Router extends HttpService implements RouterInterface
|
|||||||
*/
|
*/
|
||||||
public function dispatch(): mixed
|
public function dispatch(): mixed
|
||||||
{
|
{
|
||||||
if (!($node = $this->find_path(\request()))) {
|
$node = $this->find_path(\request());
|
||||||
|
if (!($node instanceof Node)) {
|
||||||
return send(self::NOT_FOUND);
|
return send(self::NOT_FOUND);
|
||||||
}
|
}
|
||||||
send(($response = $node->dispatch()), 200);
|
send(($response = $node->dispatch()), 200);
|
||||||
|
|||||||
Reference in New Issue
Block a user