BadCase更改域名

BadCase更改域名
This commit is contained in:
xuxinchao
2022-07-14 10:47:56 +08:00
parent 97df0bda1e
commit 3b4cb40d06

View File

@@ -4,5 +4,17 @@ import com.mogo.commons.debug.DebugConfig
internal object BadCaseHost {
fun getHost(): String = "http://172.30.37.145:8111"/*if (DebugConfig.getNetMode() == DebugConfig.NET_MODE_RELEASE) "http://dzt.zhidaozhixing.com" else "http://front.zdjs-private-test.myghost.zhidaoauto.com"*/
private const val HOST_DEV = "http://dzt.zhidaozhixing.com/"
private const val HOST_RELEASE = "https://dzt-test.zhidaozhixing.com/"
fun getHost(): String{
return when (DebugConfig.getNetMode()) {
DebugConfig.NET_MODE_DEV -> HOST_DEV
DebugConfig.NET_MODE_QA -> HOST_DEV
DebugConfig.NET_MODE_DEMO -> HOST_RELEASE
DebugConfig.NET_MODE_RELEASE -> HOST_RELEASE
else -> HOST_RELEASE
}
}
}