diff --git a/HttpServer/Route/Dispatch/Dispatch.php b/HttpServer/Route/Dispatch/Dispatch.php index fb8848b7..2926d0bb 100644 --- a/HttpServer/Route/Dispatch/Dispatch.php +++ b/HttpServer/Route/Dispatch/Dispatch.php @@ -52,7 +52,7 @@ class Dispatch */ public function dispatch(): mixed { - return \aop($this->handler, ...func_get_args()); + return \aop($this->handler, ...$this->request); } diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index a5f42615..344a042c 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -125,7 +125,7 @@ class Node extends HttpService public function createDispatch(): Closure { return function () { - return Dispatch::create($this->handler, func_get_args())->dispatch(); + return Dispatch::create($this->handler, ...func_get_args())->dispatch(); }; } diff --git a/System/Snowflake.php b/System/Snowflake.php index 84dfeeb3..bc957eaa 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -30,7 +30,6 @@ defined('CLIENT_PATH') or define('CLIENT_PATH', APP_PATH . 'app/Client/'); defined('TASK_PATH') or define('TASK_PATH', APP_PATH . 'app/Async/'); defined('LISTENER_PATH') or define('LISTENER_PATH', APP_PATH . 'app/Listener/'); defined('KAFKA_PATH') or define('KAFKA_PATH', APP_PATH . 'app/Kafka/'); -defined('RPC_SERVICE_PATH') or define('RPC_SERVICE_PATH', APP_PATH . 'app/Http/Rpc/'); defined('RPC_CLIENT_PATH') or define('RPC_CLIENT_PATH', APP_PATH . 'app/Client/Rpc/'); defined('MODEL_PATH') or define('MODEL_PATH', APP_PATH . 'app/Models/'); defined('SOCKET_PATH') or define('SOCKET_PATH', APP_PATH . 'app/Websocket/');