diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 2655aeb0..c6c89ce9 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -6,7 +6,6 @@ namespace HttpServer\Route; use Annotation\Aspect; -use Annotation\Route\RpcProducer; use Closure; use Exception; use HttpServer\Exception\RequestException; @@ -80,12 +79,12 @@ class Node */ public function unpack(string $data): mixed { - if ($this->_dataType == RpcProducer::PROTOCOL_JSON) { - return json_decode($data, true); - } - if ($this->_dataType == RpcProducer::PROTOCOL_SERIALIZE) { - return unserialize($data); - } +// if ($this->_dataType == RpcProducer::PROTOCOL_JSON) { +// return json_decode($data, true); +// } +// if ($this->_dataType == RpcProducer::PROTOCOL_SERIALIZE) { +// return unserialize($data); +// } return $data; } diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index 3bddaf97..d86fea8b 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -537,6 +537,7 @@ class Router extends HttpService implements RouterInterface return null; } $node = $this->tree_search(['*'], $request->getMethod()); + var_dump($node, $request->getMethod()); if (!($node instanceof Node)) { return null; }