This commit is contained in:
2021-03-03 23:46:05 +08:00
parent 1f9d463e77
commit fc5cf3981d
+2 -2
View File
@@ -72,8 +72,8 @@ class Middleware
}
[$controller, $action] = $node->handler;
$attributes = Snowflake::app()->getAttributes();
$annotation = $attributes->getMethods($controller, $action);
if (count($annotation) < 1) {
$annotation = $attributes->getMethods(get_class($controller), $action);
if (empty($annotation)) {
return;
}
foreach ($annotation as $attribute) {