diff --git a/.idea/misc.xml b/.idea/misc.xml
index 42fab5f..d79aadd 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/MogoHttpDnsClient.kt b/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/MogoHttpDnsClient.kt
index 9a5ed7a..a118de1 100644
--- a/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/MogoHttpDnsClient.kt
+++ b/foudations/mogo-httpdns/src/main/java/com/mogo/cloud/httpdns/MogoHttpDnsClient.kt
@@ -1,14 +1,14 @@
package com.mogo.cloud.httpdns
import com.mogo.cloud.httpdns.listener.IMogoHttpDns
-import java.lang.IllegalStateException
object MogoHttpDnsClient : IMogoHttpDns {
- private var httpDnsHelper:HttpDnsHelper? = null
+ private var httpDnsHelper: HttpDnsHelper? = null
fun init(config: MogoHttpDnsConfig) {
- if(httpDnsHelper == null) {
+ // httpdns init
+ if (httpDnsHelper == null) {
httpDnsHelper = HttpDnsHelper(config)
}
}
@@ -16,7 +16,7 @@ object MogoHttpDnsClient : IMogoHttpDns {
/**
* 先从本地缓存中根据type和host获取ip:port,如果本地缓存中没有,再通过网络获取
*/
- fun getHttpDnsAddressUseCacheIfNecessary(type: Int, _host: String):String?{
+ fun getHttpDnsAddressUseCacheIfNecessary(type: Int, _host: String): String? {
return getHttpDnsCachedAddress(type, _host) ?: return getHttpDnsAddress(type, _host)
}
@@ -24,7 +24,7 @@ object MogoHttpDnsClient : IMogoHttpDns {
if (httpDnsHelper == null) {
throw IllegalStateException("MogoHttpDnsClient init error")
}
- return httpDnsHelper!!.getHttpDnsAddress(type,_host)
+ return httpDnsHelper!!.getHttpDnsAddress(type, _host)
}
override fun getHttpDnsCachedAddress(type: Int, _host: String): String? {
diff --git a/gradle.properties b/gradle.properties
index f78f7ab..5974a8f 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -30,20 +30,20 @@ PASSWORD=xintai2018
RELEASE=false
# AI CLOUD 云平台
# 工具类
-MOGO_UTILS_VERSION=1.0.35-SNAPSHOT
+MOGO_UTILS_VERSION=1.0.39-SNAPSHOT
# 网络请求
-MOGO_NETWORK_VERSION=1.0.35-SNAPSHOT
+MOGO_NETWORK_VERSION=1.0.39-SNAPSHOT
# 网络DNS
-MOGO_HTTPDNS_VERSION=1.0.35-SNAPSHOT
+MOGO_HTTPDNS_VERSION=1.0.39-SNAPSHOT
# 鉴权
-MOGO_PASSPORT_VERSION=1.0.35-SNAPSHOT
+MOGO_PASSPORT_VERSION=1.0.39-SNAPSHOT
# 常链接
-MOGO_SOCKET_VERSION=1.0.35-SNAPSHOT
+MOGO_SOCKET_VERSION=1.0.39-SNAPSHOT
# 数据采集
-MOGO_REALTIME_VERSION=1.0.35-SNAPSHOT
+MOGO_REALTIME_VERSION=1.0.39-SNAPSHOT
# 探路,道路事件发布,获取
-MOGO_TANLU_VERSION=1.0.35-SNAPSHOT
+MOGO_TANLU_VERSION=1.0.39-SNAPSHOT
# 直播推流
-MOGO_LIVE_VERSION=1.0.35-SNAPSHOT
+MOGO_LIVE_VERSION=1.0.39-SNAPSHOT
# 直播拉流
-MOGO_TRAFFICLIVE_VERSION=1.0.35-SNAPSHOT
+MOGO_TRAFFICLIVE_VERSION=1.0.39-SNAPSHOT