This commit is contained in:
zhongchao
2022-02-28 14:55:13 +08:00
parent b27ffd50bc
commit 8220c0691e
2 changed files with 20 additions and 16 deletions

View File

@@ -14,8 +14,7 @@ import com.mogo.cloud.httpdns.util.NetWorkUtil
import java.util.*
/**
* 1. 本地每15min查询一次
* 2. 网络状态发生变化时候重置15min轮询并查询一次
* 1. 网络状态发生变化时候,重置15min轮询,并查询一次
*
* @author tongchenfei
*/
@@ -138,12 +137,17 @@ internal class HttpDnsHelper(private val builder: MogoHttpDnsConfig) : Handler.C
cur.cityCode
)
) {
getHttpDnsAddress(type, _host)
L.d(
TAG,
"getHttpDnsCachedAddress httpDnsCache: ${httpDnsCache.toString()} , currentLoc: $currentLoc"
)
httpDnsCache = currentLoc
getHttpDnsAddress(type, _host)
}
}
}
return addressMap?.get("$type-$host") ?: defaultUrl
val default = defaultUrl ?: host
return addressMap?.get("$type-$host") ?: default
}
override fun getAllAddress(): Map<String, String>? {

View File

@@ -36,26 +36,26 @@ PASSWORD=xintai2018
RELEASE=true
# AI CLOUD 云平台
# 工具类
MOGO_UTILS_VERSION=1.3.26
MOGO_UTILS_VERSION=1.3.30
# 网络请求
MOGO_NETWORK_VERSION=1.3.26
MOGO_NETWORK_VERSION=1.3.30
# 网络DNS
MOGO_HTTPDNS_VERSION=1.3.26
MOGO_HTTPDNS_VERSION=1.3.30
# 鉴权
MOGO_PASSPORT_VERSION=1.3.26
MOGO_PASSPORT_VERSION=1.3.30
# 常链接
MOGO_SOCKET_VERSION=1.3.26
MOGO_SOCKET_VERSION=1.3.30
# 数据采集
MOGO_REALTIME_VERSION=1.3.26
MOGO_REALTIME_VERSION=1.3.30
# 探路,道路事件发布,获取
MOGO_TANLU_VERSION=1.3.26
MOGO_TANLU_VERSION=1.3.30
# 直播推流
MOGO_LIVE_VERSION=1.3.26
MOGO_LIVE_VERSION=1.3.30
# 直播拉流
MOGO_TRAFFICLIVE_VERSION=1.3.26
MOGO_TRAFFICLIVE_VERSION=1.3.30
# 定位服务
MOGO_LOCATION_VERSION=1.3.26
MOGO_LOCATION_VERSION=1.3.30
# 远程通讯模块
MOGO_TELEMATIC_VERSION=1.3.26
MOGO_TELEMATIC_VERSION=1.3.30
# v2x
MOGO_V2X_VERSION=1.3.26
MOGO_V2X_VERSION=1.3.30