mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 10:57:49 +08:00
优化解析逻辑
This commit is contained in:
@@ -64,7 +64,10 @@ public class DefaultAopMethodAuthorizeDefinitionParser implements AopMethodAutho
|
||||
.map(customer -> customer.parse(target, method, context))
|
||||
.filter(Objects::nonNull)
|
||||
.findAny().orElse(null);
|
||||
if (definition != null && !(definition instanceof EmptyAuthorizeDefinition)) {
|
||||
if (definition instanceof EmptyAuthorizeDefinition) {
|
||||
return null;
|
||||
}
|
||||
if (definition != null) {
|
||||
return definition;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user