优化代码

This commit is contained in:
RuoYi
2025-03-11 12:55:20 +08:00
parent 3a91cb47a4
commit 85dc2aef8f
5 changed files with 9 additions and 18 deletions

View File

@@ -56,16 +56,8 @@ public class PreAuthorizeAspect
// 注解鉴权
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
checkMethodAnnotation(signature.getMethod());
try
{
// 执行原有逻辑
Object obj = joinPoint.proceed();
return obj;
}
catch (Throwable e)
{
throw e;
}
// 执行原有逻辑
return joinPoint.proceed();
}
/**