[m2]大理mis和dns正式域名配置
This commit is contained in:
@@ -44,8 +44,8 @@
|
||||
"passport_url": "https://och-a.zhidaozhixing.com/arch/passport/",
|
||||
"socket_base_url": "https://och-a.zhidaozhixing.com/arch/push/",
|
||||
"socket_tech_url": "https://och-a.zhidaozhixing.com/arch/",
|
||||
"eagle_mis_url": "http://eagle-mis-a.zhidaozhixing.com/",
|
||||
"eagle_dns_url": "http://eagle-dns-a.zhidaozhixing.com/"
|
||||
"eagle_mis_url": "http://och-hailing-eh.zhidaozhixing.com:18181/",
|
||||
"eagle_dns_url": "http://och-hailing-eh.zhidaozhixing.com:18181/"
|
||||
},
|
||||
"demo": {
|
||||
"och_url": "https://och-a.zhidaozhixing.com",
|
||||
|
||||
@@ -23,9 +23,10 @@ public class HostConst {
|
||||
public static final String CMDB_HOST = "http://eagle-mis.zhidaozhixing.com/eagleEye-mis/cmdbapi/";
|
||||
|
||||
public static final String HOST_DEV = "http://eagle-mis-a.zhidaozhixing.com";
|
||||
public static final String HOST_RELEASE = "http://eagle-mis.zhidaozhixing.com";
|
||||
public static final String HOST_RELEASE = "http://och-hailing-eh.zhidaozhixing.com:18181";
|
||||
|
||||
public static final String HOST_EAGLE_QA = "http://eagle-dns-a.zhidaozhixing.com/";
|
||||
public static final String HOST_EAGLE_RELEASE = "http://och-hailing-eh.zhidaozhixing.com:18181/";
|
||||
|
||||
public static String getHost() {
|
||||
String host = HOST_RELEASE;
|
||||
@@ -44,12 +45,18 @@ public class HostConst {
|
||||
}
|
||||
|
||||
public static String getEagleHost(){
|
||||
String host = HOST_EAGLE_RELEASE;
|
||||
if(FunctionBuildConfig.urlJson.getEagleDnsUrl().isEmpty()){
|
||||
return HOST_EAGLE_QA;
|
||||
switch (DebugConfig.getNetMode()){
|
||||
case DebugConfig.NET_MODE_DEV:
|
||||
case DebugConfig.NET_MODE_QA:
|
||||
host = HOST_EAGLE_QA;
|
||||
break;
|
||||
}
|
||||
return host;
|
||||
}else{
|
||||
return FunctionBuildConfig.urlJson.getEagleDnsUrl();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user