mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
chore: 去除配额拦截
This commit is contained in:
parent
0f07d05953
commit
04f693f76a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user