modify
This commit is contained in:
@@ -126,10 +126,9 @@ class Node extends HttpService
|
||||
if (empty($dispatchParam)) {
|
||||
$dispatchParam = [\request()];
|
||||
}
|
||||
// if ($this->handler instanceof Closure) {
|
||||
// return call_user_func($this->handler, ...$dispatchParam);
|
||||
// }
|
||||
return call_user_func($this->handler, ...$dispatchParam);
|
||||
if ($this->handler instanceof Closure) {
|
||||
return call_user_func($this->handler, ...$dispatchParam);
|
||||
}
|
||||
return \aop($this->handler, $dispatchParam);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user