[m1]MIS和HttpDNS接口域名支持配置

This commit is contained in:
xuxinchao
2023-03-06 14:59:08 +08:00
parent 1e2ed63ba6
commit d2fd81d576

View File

@@ -1,6 +1,7 @@
package com.mogo.commons.constants;
import com.mogo.commons.debug.DebugConfig;
import com.mogo.eagle.core.data.config.FunctionBuildConfig;
public class HostConst {
public static final String DEVA_HOST = "http://dzt-deva.zhidaozhixing.com";
@@ -28,17 +29,27 @@ public class HostConst {
public static String getHost() {
String host = HOST_RELEASE;
switch (DebugConfig.getNetMode()) {
case DebugConfig.NET_MODE_DEV:
case DebugConfig.NET_MODE_QA:
host = HOST_DEV;
break;
if(FunctionBuildConfig.urlJson.getEagleMisUrl().isEmpty()){
switch (DebugConfig.getNetMode()) {
case DebugConfig.NET_MODE_DEV:
case DebugConfig.NET_MODE_QA:
host = HOST_DEV;
break;
}
return host;
}else{
return FunctionBuildConfig.urlJson.getEagleMisUrl();
}
return host;
}
public static String getEagleHost(){
return HOST_EAGLE_QA;
if(FunctionBuildConfig.urlJson.getEagleDnsUrl().isEmpty()){
return HOST_EAGLE_QA;
}else{
return FunctionBuildConfig.urlJson.getEagleDnsUrl();
}
}