Merge branch 'dev_robotaxi-d_231031_6.2.0' of gitlab.zhidaoauto.com:SCA/L4HA/AndroidApp/MoGoEagleEye into dev_robotaxi-d_231031_6.2.0
This commit is contained in:
@@ -3,6 +3,7 @@ package com.zhjt.mogo_core_function_devatools.badcase.repository.net
|
||||
import android.util.Log
|
||||
import com.mogo.commons.constants.HostConst
|
||||
import com.mogo.eagle.core.data.BaseResponse
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_DEVA
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.network.MoGoRetrofitFactory
|
||||
@@ -61,7 +62,15 @@ internal class BadCaseNetModel {
|
||||
null
|
||||
}
|
||||
|
||||
private fun getNetWorkApi(baseUrl: String ="http://eagle-qa.zhidaozhixing.com"): BadCaseApi{
|
||||
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{
|
||||
return MoGoRetrofitFactory.getInstanceNoCallAdapter(baseUrl)
|
||||
.create(BadCaseApi::class.java)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user