diff --git a/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/HttpDnsHelper.kt b/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/HttpDnsHelper.kt index 82c4123..9558e3e 100644 --- a/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/HttpDnsHelper.kt +++ b/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/HttpDnsHelper.kt @@ -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? { diff --git a/gradle.properties b/gradle.properties index 61b5b78..dd167e0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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