[2.15.0-merge-master]

This commit is contained in:
zhongchao
2023-05-06 20:03:51 +08:00
1466 changed files with 45283 additions and 27080 deletions

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";
@@ -29,24 +30,33 @@ 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(){
String eagleHost = HOST_EAGLE_RELEASE;
switch (DebugConfig.getNetMode()){
case DebugConfig.NET_MODE_DEV:
case DebugConfig.NET_MODE_QA:
eagleHost = HOST_EAGLE_QA;
break;
String host = HOST_EAGLE_RELEASE;
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{
return FunctionBuildConfig.urlJson.getEagleDnsUrl();
}
return eagleHost;
}