This commit is contained in:
2021-04-19 17:06:58 +08:00
parent e6e0c9e62c
commit edcb45a33f
+1 -6
View File
@@ -561,12 +561,7 @@ class Node extends HttpService
*/ */
private function runWith(): mixed private function runWith(): mixed
{ {
$requestParams = func_get_args(); return call_user_func($this->callback, ...func_get_args());
if (count($requestParams) > 0) {
return call_user_func($this->callback, ...$requestParams);
} else {
return call_user_func($this->callback, \request());
}
} }