modify
This commit is contained in:
@@ -130,6 +130,8 @@ class Node extends HttpService
|
|||||||
if (empty($dispatchParam)) {
|
if (empty($dispatchParam)) {
|
||||||
$dispatchParam = [\request()];
|
$dispatchParam = [\request()];
|
||||||
}
|
}
|
||||||
|
return call_user_func($this->handler, ...$dispatchParam);
|
||||||
|
|
||||||
return \aop($this->handler, $dispatchParam);
|
return \aop($this->handler, $dispatchParam);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -526,6 +528,8 @@ class Node extends HttpService
|
|||||||
*/
|
*/
|
||||||
private function runValidator($dispatchParams): mixed
|
private function runValidator($dispatchParams): mixed
|
||||||
{
|
{
|
||||||
|
return call_user_func($this->callback, ...$dispatchParams);
|
||||||
|
|
||||||
/** @var HttpFilter $filter */
|
/** @var HttpFilter $filter */
|
||||||
$filter = Snowflake::app()->get('filter');
|
$filter = Snowflake::app()->get('filter');
|
||||||
$validator = $filter->check(get_class($this->handler[0]), $this->handler[1]);
|
$validator = $filter->check(get_class($this->handler[0]), $this->handler[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user