From 17513cc13312e0f29347020050e518333967280b Mon Sep 17 00:00:00 2001 From: wxm <115806199+youfanx@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:51:26 +0800 Subject: [PATCH] up --- rxlib/src/main/java/org/rx/core/Constants.java | 2 ++ rxlib/src/main/java/org/rx/spring/Interceptors.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rxlib/src/main/java/org/rx/core/Constants.java b/rxlib/src/main/java/org/rx/core/Constants.java index 430c7c29..d58d6c4c 100644 --- a/rxlib/src/main/java/org/rx/core/Constants.java +++ b/rxlib/src/main/java/org/rx/core/Constants.java @@ -43,6 +43,8 @@ enum MetricName { int ADVICE_SHARE_TIME_INDEX = 0; int ADVICE_SHARE_FORK_JOIN_FUNC_INDEX = 1; + String ENABLE_FLAG = "1"; + /** * do not edit */ diff --git a/rxlib/src/main/java/org/rx/spring/Interceptors.java b/rxlib/src/main/java/org/rx/spring/Interceptors.java index e394d6b9..0207ff87 100644 --- a/rxlib/src/main/java/org/rx/spring/Interceptors.java +++ b/rxlib/src/main/java/org/rx/spring/Interceptors.java @@ -12,6 +12,7 @@ import org.rx.bean.ProceedEventArgs; import org.rx.bean.Tuple; import org.rx.core.Arrays; +import org.rx.core.Constants; import org.rx.core.RxConfig; import org.rx.core.Strings; import org.rx.exception.ApplicationException; @@ -90,7 +91,7 @@ public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { return joinPoint.proceed(); } - if (Strings.equals(httpEnv.left.getParameter("rmx"), RxConfig.INSTANCE.getMxpwd())) { + if (Strings.equals(httpEnv.left.getParameter("rmx"), Constants.ENABLE_FLAG)) { MxController controller = SpringContext.getBean(MxController.class); if (controller != null) { return controller.health(httpEnv.left);