[6.5.0] tmp

This commit is contained in:
EmArrow
2024-06-17 16:22:36 +08:00
parent dbf223c997
commit f1ff3baf52
11 changed files with 240 additions and 51 deletions

View File

@@ -10,9 +10,12 @@ public class HostConst {
public static final String HOST_EAGLE_QA = "https://eagle-dns-qa.zhidaozhixing.com/";
public static final String HOST_EAGLE_RELEASE = "https://eagle-dns.zhidaozhixing.com/";
public static final String NED_QA = "https://nde-qa-city.zhidaozhixing.com";
public static final String NED_RELEASE = "https://nde-city.zhidaozhixing.com";
public static String getHost() {
String host = HOST_RELEASE;
if(FunctionBuildConfig.urlJson.getEagleMisUrl().isEmpty()){
if (FunctionBuildConfig.urlJson.getEagleMisUrl().isEmpty()) {
switch (DebugConfig.getNetMode()) {
case DebugConfig.NET_MODE_DEV:
case DebugConfig.NET_MODE_QA:
@@ -20,27 +23,36 @@ public class HostConst {
break;
}
return host;
}else{
} else {
return FunctionBuildConfig.urlJson.getEagleMisUrl();
}
}
public static String getEagleHost(){
public static String getEagleHost() {
String host = HOST_EAGLE_RELEASE;
if(FunctionBuildConfig.urlJson.getEagleDnsUrl().isEmpty()){
switch (DebugConfig.getNetMode()){
if (FunctionBuildConfig.urlJson.getEagleDnsUrl().isEmpty()) {
switch (DebugConfig.getNetMode()) {
case DebugConfig.NET_MODE_DEV:
case DebugConfig.NET_MODE_QA:
host = HOST_EAGLE_QA;
break;
}
return host;
}else{
} else {
return FunctionBuildConfig.urlJson.getEagleDnsUrl();
}
}
public static String getNDEHost() {
String host = NED_RELEASE;
switch (DebugConfig.getNetMode()) {
case DebugConfig.NET_MODE_DEV:
case DebugConfig.NET_MODE_QA:
host = NED_QA;
break;
}
return host;
}
}