改名
This commit is contained in:
@@ -528,13 +528,10 @@ class Node extends HttpService
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$dispatchParams = func_get_args();
|
$dispatchParams = func_get_args();
|
||||||
if (empty($dispatchParams)) {
|
if (empty($dispatchParams)) $dispatchParams = [\request(), \response()];
|
||||||
$dispatchParams = [\request()];
|
|
||||||
}
|
|
||||||
if ($this->handler instanceof Closure) {
|
if ($this->handler instanceof Closure) {
|
||||||
return call_user_func($this->handler, ...$dispatchParams);
|
return call_user_func($this->handler, ...$dispatchParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
$validator = $this->getValidator();
|
$validator = $this->getValidator();
|
||||||
if (!($validator instanceof Validator)) {
|
if (!($validator instanceof Validator)) {
|
||||||
return call_user_func($this->callback, ...$dispatchParams);
|
return call_user_func($this->callback, ...$dispatchParams);
|
||||||
|
|||||||
Reference in New Issue
Block a user