diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 0e5146e2..e0479109 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -20,7 +20,6 @@ use Snowflake\Core\Json; use Snowflake\Exception\NotFindClassException; use Snowflake\Snowflake; use Throwable; -use validator\Validator; use function Input; /** @@ -530,6 +529,7 @@ class Node extends HttpService { try { $requestParam = func_get_args(); + var_dump($requestParam); if ($this->handler instanceof Closure) { return $this->runWith(...$requestParam); } @@ -561,6 +561,8 @@ class Node extends HttpService */ private function runWith(): mixed { + return ($this->callback)(...func_get_args()); + return call_user_func($this->callback, ...func_get_args()); }