diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/config/QuotaInterceptor.java b/backend/services/system-setting/src/main/java/io/metersphere/system/config/QuotaInterceptor.java index 7f2c95174d..2fc20ffefa 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/config/QuotaInterceptor.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/config/QuotaInterceptor.java @@ -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);