This commit is contained in:
nkorange 2018-11-08 21:24:50 +08:00
parent 031f2f1a16
commit 8fe38f7dcb

View File

@ -365,7 +365,7 @@ public class ApiCommands {
String envAndSite = BaseServlet.optional(request, "envAndSites", StringUtils.EMPTY);
boolean resetWeight = Boolean.parseBoolean(BaseServlet.optional(request, "resetWeight", "false"));
boolean enableHealthCheck = Boolean.parseBoolean(BaseServlet.optional(request, "enableHealthCheck", "true"));
boolean enable = Boolean.parseBoolean(BaseServlet.optional(request, "enable", "true"));
boolean enable = Boolean.parseBoolean(BaseServlet.optional(request, "serviceEnabled", "true"));
String disabledSites = BaseServlet.optional(request, "disabledSites", StringUtils.EMPTY);
boolean eanbleClientBeat = Boolean.parseBoolean(BaseServlet.optional(request, "enableClientBeat", "false"));
String clusterName = BaseServlet.optional(request, "clusterName", UtilsAndCommons.DEFAULT_CLUSTER_NAME);
@ -734,7 +734,7 @@ public class ApiCommands {
dom.setEnableHealthCheck(Boolean.parseBoolean(enableHealthCheck));
}
String enabled = BaseServlet.optional(request, "enabled", StringUtils.EMPTY);
String enabled = BaseServlet.optional(request, "serviceEnabled", StringUtils.EMPTY);
if (!StringUtils.isEmpty(enabled)) {
dom.setEnabled(Boolean.parseBoolean(enabled));
}