[6.2.0]录包原因接口切换为根据包动态设置域名

This commit is contained in:
xuxinchao
2023-11-23 19:17:06 +08:00
parent bc86e638ec
commit 9cd65e0b61

View File

@@ -62,15 +62,7 @@ internal class BadCaseNetModel {
null
}
private fun getHost(): String{
return if(FunctionBuildConfig.urlJson.eagleMisUrl.isEmpty()){
"http://eagle-qa.zhidaozhixing.com"
}else{
"http://eagle-mis-a.zhidaozhixing.com/"
}
}
private fun getNetWorkApi(baseUrl: String =getHost()): BadCaseApi{
private fun getNetWorkApi(baseUrl: String = HostConst.getHost()): BadCaseApi{
return MoGoRetrofitFactory.getInstanceNoCallAdapter(baseUrl)
.create(BadCaseApi::class.java)
}