update version
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -13,7 +13,7 @@
|
||||
<option name="HEAP_SIZE" value="1024" />
|
||||
<option name="LOCALE" value="zh_CN" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="12" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -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? {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user