This commit is contained in:
2021-04-19 17:09:36 +08:00
parent edcb45a33f
commit f1b35fb496
+3 -1
View File
@@ -20,7 +20,6 @@ use Snowflake\Core\Json;
use Snowflake\Exception\NotFindClassException; use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake; use Snowflake\Snowflake;
use Throwable; use Throwable;
use validator\Validator;
use function Input; use function Input;
/** /**
@@ -530,6 +529,7 @@ class Node extends HttpService
{ {
try { try {
$requestParam = func_get_args(); $requestParam = func_get_args();
var_dump($requestParam);
if ($this->handler instanceof Closure) { if ($this->handler instanceof Closure) {
return $this->runWith(...$requestParam); return $this->runWith(...$requestParam);
} }
@@ -561,6 +561,8 @@ class Node extends HttpService
*/ */
private function runWith(): mixed private function runWith(): mixed
{ {
return ($this->callback)(...func_get_args());
return call_user_func($this->callback, ...func_get_args()); return call_user_func($this->callback, ...func_get_args());
} }