This commit is contained in:
as2252258@163.com
2021-09-05 04:21:05 +08:00
parent 3c181b4d60
commit 92110de1a8
+1 -3
View File
@@ -493,13 +493,11 @@ class Router extends HttpService implements RouterInterface
{ {
$uri = $request->getUri(); $uri = $request->getUri();
$node = $this->tree_search($uri->getExplode()); $node = $this->tree_search($uri->getExplode());
var_dump($node);
if ($node instanceof Node) { if ($node instanceof Node) {
return $node; return $node;
} }
var_dump($request->isMethod('OPTIONS'));
if (!$request->isMethod('OPTIONS')) { if (!$request->isMethod('OPTIONS')) {
return null; return null;
} }
$node = $this->tree_search(['*']); $node = $this->tree_search(['*']);
if (!($node instanceof Node)) { if (!($node instanceof Node)) {