Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Sep 13, 2023
1 parent b53c605 commit 17513cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rxlib/src/main/java/org/rx/core/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 2 additions & 1 deletion rxlib/src/main/java/org/rx/spring/Interceptors.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 17513cc

Please sign in to comment.