改名
This commit is contained in:
@@ -85,7 +85,6 @@ class Middleware
|
|||||||
$node->addAfter($attribute->after);
|
$node->addAfter($attribute->after);
|
||||||
}
|
}
|
||||||
if ($attribute instanceof RMiddleware) {
|
if ($attribute instanceof RMiddleware) {
|
||||||
var_dump($attribute->middleware);
|
|
||||||
$node->addMiddleware($attribute->middleware);
|
$node->addMiddleware($attribute->middleware);
|
||||||
}
|
}
|
||||||
if ($attribute instanceof Limits) {
|
if ($attribute instanceof Limits) {
|
||||||
|
|||||||
@@ -469,9 +469,9 @@ class Node extends HttpService
|
|||||||
*/
|
*/
|
||||||
public function dispatch(): mixed
|
public function dispatch(): mixed
|
||||||
{
|
{
|
||||||
if (!empty($this->callback)) {
|
// if (!empty($this->callback)) {
|
||||||
return $this->runWith(...func_get_args());
|
// return $this->runWith(...func_get_args());
|
||||||
}
|
// }
|
||||||
if (empty($this->restructure()->callback)) {
|
if (empty($this->restructure()->callback)) {
|
||||||
return Json::to(404, $this->errorMsg());
|
return Json::to(404, $this->errorMsg());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user