chore: 去除配额拦截

This commit is contained in:
fit2-zhao 2024-07-12 11:06:04 +08:00 committed by Craftsman
parent 0f07d05953
commit 04f693f76a
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import io.metersphere.plugin.sdk.spi.QuotaPlugin;
import io.metersphere.system.service.PluginLoadService;
import jakarta.annotation.Resource;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;
@ -17,10 +16,10 @@ public class QuotaInterceptor {
// 插件ID
private final String QUOTA = "cloud-quota-plugin";
@Around("execution(* io.metersphere..*(..)) && " +
/*@Around("execution(* io.metersphere..*(..)) && " +
"(@annotation(org.springframework.web.bind.annotation.PostMapping) ||" +
"@annotation(org.springframework.web.bind.annotation.GetMapping)|| " +
"@annotation(org.springframework.web.bind.annotation.RequestMapping))")
"@annotation(org.springframework.web.bind.annotation.RequestMapping))")*/
public Object interceptor(ProceedingJoinPoint pjp) throws Throwable {
// 验证配额规则
PluginWrapper pluginWrapper = pluginLoadService.getMsPluginManager().getPlugin(QUOTA);