This commit is contained in:
2021-03-04 00:29:05 +08:00
parent a7b0246d53
commit 9d5007ad91
2 changed files with 3 additions and 4 deletions
-1
View File
@@ -85,7 +85,6 @@ class Middleware
$node->addAfter($attribute->after);
}
if ($attribute instanceof RMiddleware) {
var_dump($attribute->middleware);
$node->addMiddleware($attribute->middleware);
}
if ($attribute instanceof Limits) {
+3 -3
View File
@@ -469,9 +469,9 @@ class Node extends HttpService
*/
public function dispatch(): mixed
{
if (!empty($this->callback)) {
return $this->runWith(...func_get_args());
}
// if (!empty($this->callback)) {
// return $this->runWith(...func_get_args());
// }
if (empty($this->restructure()->callback)) {
return Json::to(404, $this->errorMsg());
}