改名
This commit is contained in:
@@ -503,14 +503,14 @@ class Router extends HttpService implements RouterInterface
|
|||||||
public function Branch_search(RequestInterface $request): ?Node
|
public function Branch_search(RequestInterface $request): ?Node
|
||||||
{
|
{
|
||||||
$uri = $request->getUri();
|
$uri = $request->getUri();
|
||||||
if ($request->isMethod('OPTIONS')) {
|
// if ($request->isMethod('OPTIONS')) {
|
||||||
$node = $this->tree_search(['*']);
|
// $node = $this->tree_search(['*']);
|
||||||
if (!($node instanceof Node)) {
|
// if (!($node instanceof Node)) {
|
||||||
$node = $this->tree_search($uri->getExplode());
|
// $node = $this->tree_search($uri->getExplode());
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
$node = $this->tree_search($uri->getExplode());
|
// }
|
||||||
}
|
$node = $this->tree_search($uri->getExplode());
|
||||||
if (!($node instanceof Node)) {
|
if (!($node instanceof Node)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user