This commit is contained in:
2021-03-03 20:06:32 +08:00
parent a65d9f6ac1
commit 301a283833
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class Middleware
}
[$controller, $action] = $node->handler;
$attributes = Snowflake::app()->getAttributes();
$annotation = $attributes->getAnnotationByMethod($controller, $action);
$annotation = $attributes->getMethods($controller, $action);
if (count($annotation) < 1) {
return;
}