[2.13.0] change the host const loc

This commit is contained in:
zhongchao
2022-11-30 16:23:32 +08:00
parent 0d6938262c
commit fbb15bcf47
11 changed files with 48 additions and 48 deletions

View File

@@ -4,12 +4,10 @@ import com.mogo.eagle.core.data.Response
import com.mogo.eagle.core.network.MoGoRetrofitFactory
import com.mogo.eagle.core.network.apiResponseCall
import com.mogo.eagle.core.network.request
import com.mogo.commons.constants.HostConst
import com.zhjt.mogo_core_function_devatools.upgrade.network.HostConst.Companion.getBaseUrl
class UpgradeVersionNetWorkModel {
private fun getNetWorkApi(baseUrl: String = HostConst.CITY_HOST): UpgradeVersionApiService {
private fun getNetWorkApi(baseUrl: String = HostConst.getBaseUrl()): UpgradeVersionApiService {
return MoGoRetrofitFactory.getInstanceNoCallAdapter(baseUrl)
.create(UpgradeVersionApiService::class.java)
}
@@ -22,7 +20,7 @@ class UpgradeVersionNetWorkModel {
request<Response<Any?>> {
loader {
apiResponseCall {
getNetWorkApi(getBaseUrl()).getUpgradeVersion(
getNetWorkApi().getUpgradeVersion(
versionName
)
}