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; [$controller, $action] = $node->handler;
$attributes = Snowflake::app()->getAttributes(); $attributes = Snowflake::app()->getAttributes();
$annotation = $attributes->getMethods($controller, $action); $annotation = $attributes->getMethods(get_class($controller), $action);
if (count($annotation) < 1) { if (empty($annotation)) {
return; return;
} }
foreach ($annotation as $attribute) { foreach ($annotation as $attribute) {