[dev_arch_opt_3.0]
[Change] [ 1、补交更改接口地址将需要进行DNS转换的接口和部分通用接口统一由服务端进行中转解析 ]
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package com.zhjt.mogo_core_function_devatools.badcase.repository.net
|
||||
|
||||
import com.mogo.commons.constants.HostConst
|
||||
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
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.BadCaseManager
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.repository.net.api.BadCaseApi
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.repository.net.api.entity.UploadResult
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.consts.BadCaseHost
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.repository.net.api.entity.BadCaseResponse.Reason
|
||||
import kotlinx.coroutines.withContext
|
||||
import kotlin.coroutines.coroutineContext
|
||||
@@ -16,7 +16,7 @@ internal class BadCaseNetModel {
|
||||
suspend fun get(channel: String?, result: MutableList<Reason>, pageNo: Int) {
|
||||
try {
|
||||
MoGoRetrofitFactory
|
||||
.getInstance(BadCaseHost.getHost())
|
||||
.getInstance(HostConst.getEagleHost())
|
||||
.create(BadCaseApi::class.java)
|
||||
.get(channel ?: "", pageNo)
|
||||
.takeIf {
|
||||
@@ -42,7 +42,7 @@ internal class BadCaseNetModel {
|
||||
suspend fun upload(map: Map<String, String>): UploadResult? = try {
|
||||
CallerLogger.d("$M_DEVA${BadCaseManager.TAG}", "upload_params:$map")
|
||||
MoGoRetrofitFactory
|
||||
.getInstance(BadCaseHost.getHost())
|
||||
.getInstance(HostConst.getEagleHost() )
|
||||
.create(BadCaseApi::class.java)
|
||||
.post(map)
|
||||
.takeIf {
|
||||
|
||||
@@ -23,6 +23,8 @@ public class HostConst {
|
||||
public static final String HOST_DEV = "https://eagle-qa.zhidaozhixing.com";
|
||||
public static final String HOST_RELEASE = "https://eagle-mis.zhidaozhixing.com";
|
||||
|
||||
public static final String HOST_EAGLE_QA = "http://eagle-dns-qa.zhidaozhixing.com/";
|
||||
|
||||
public static String getHost() {
|
||||
String host = HOST_RELEASE;
|
||||
switch (DebugConfig.getNetMode()) {
|
||||
@@ -34,4 +36,10 @@ public class HostConst {
|
||||
return host;
|
||||
}
|
||||
|
||||
public static String getEagleHost(){
|
||||
return HOST_EAGLE_QA;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -66,23 +66,23 @@ SERVICE_BIZ_VERSION=1.2.4
|
||||
LOGLIB_VERSION=1.5.10
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 网络请求LOGLIB_VERSION
|
||||
MOGO_NETWORK_VERSION=1.4.3.27
|
||||
MOGO_NETWORK_VERSION=1.4.3.32-beta3
|
||||
# 鉴权
|
||||
MOGO_PASSPORT_VERSION=1.4.3.27
|
||||
MOGO_PASSPORT_VERSION=1.4.3.32-beta3
|
||||
# 常链接
|
||||
MOGO_SOCKET_VERSION=1.4.3.27
|
||||
MOGO_SOCKET_VERSION=1.4.3.32-beta3
|
||||
# 数据采集
|
||||
MOGO_REALTIME_VERSION=1.4.3.27
|
||||
MOGO_REALTIME_VERSION=1.4.3.32-beta3
|
||||
# 探路,道路事件发布,获取
|
||||
MOGO_TANLU_VERSION=1.4.3.27
|
||||
MOGO_TANLU_VERSION=1.4.3.32-beta3
|
||||
# 直播推流
|
||||
MOGO_LIVE_VERSION=1.4.3.27
|
||||
MOGO_LIVE_VERSION=1.4.3.32-beta3
|
||||
# 直播拉流
|
||||
MOGO_TRAFFICLIVE_VERSION=1.4.3.27
|
||||
MOGO_TRAFFICLIVE_VERSION=1.4.3.32-beta3
|
||||
# 定位服务
|
||||
MOGO_LOCATION_VERSION=1.4.3.27
|
||||
MOGO_LOCATION_VERSION=1.4.3.32-beta3
|
||||
# 远程通讯模块
|
||||
MOGO_TELEMATIC_VERSION=1.4.3.27
|
||||
MOGO_TELEMATIC_VERSION=1.4.3.32-beta2
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 自研地图
|
||||
MAP_SDK_VERSION=2.9.0.8_gamap_02
|
||||
|
||||
Reference in New Issue
Block a user