This commit is contained in:
tongchenfei
2020-12-30 14:25:17 +08:00
parent 19257eb00c
commit 053b695f9e
4 changed files with 7 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation rootProject.ext.dependencies.arouter
annotationProcessor rootProject.ext.dependencies.aroutercompiler
implementation 'com.mogo.httpdns:httpdns-helper:1.0.14'
implementation 'com.mogo.httpdns:httpdns-helper:1.0.15'
if (Boolean.valueOf(RELEASE)) {
implementation rootProject.ext.dependencies.httpdnsbase

View File

@@ -50,14 +50,8 @@ public class MogoHttpDns implements IMogoHttpDns, HttpDns, OnAddressChangedListe
@Override
public void getHttpDnsIp(String host, int type, boolean useCache, IHttpDnsCallback callback) {
Logger.d("MogoHttpDns", "host: " + host + " type: " + type);
Logger.d("MogoHttpDns", "getHttpDnsIp host: " + host + " type: " + type);
Map<String,String> map = httpDnsHelper.getAllAddress();
if(map != null) {
Logger.d("MogoHttpDns", "all host: ");
for (String key : map.keySet()) {
Logger.d("MogoHttpDns", "key: " + key + " value: " + map.get(key));
}
}
if (useCache) {
String address = httpDnsHelper.getHttpDnsCachedAddress(type, host);
if (address != null) {
@@ -74,6 +68,7 @@ public class MogoHttpDns implements IMogoHttpDns, HttpDns, OnAddressChangedListe
@Override
public void addHttpDnsTtlCallback(String host, int type, IHttpDnsTtlCallback callback) {
Logger.d("MogoHttpDns","addHttpDnsTtlCallback: host: "+host+" type: "+type);
if (ttlCallbackMap.get(type + "-" + host) == null) {
ttlCallbackMap.put(type + "-" + host, new ArrayList<IHttpDnsTtlCallback>());
}

View File

@@ -78,6 +78,9 @@ public class WebSocketManager implements IMogoWebSocketManager, ISocketMsgSettin
@Override
public void ttlIp(String url) {
Logger.d(TAG,"ttlIp url : " + url);
if(!WebSocketInstanceHolder.getClientProxy().isOpen()){
return;
}
WebSocketInstanceHolder.getClientProxy().stop();
WebSocketInstanceHolder.getClientProxy().disConnect();
Logger.d(TAG,"ready to re initWebSocket : " + url);

View File

@@ -139,7 +139,7 @@ HTTPDNS_NOOP_VERSION = 2.0.12
######## 外部依赖引用
# 车聊聊
CARCHATTING_VERSION=2.2.60
CARCHATTING_VERSION=2.2.63
# 车聊聊接口
CARCHATTINGPROVIDER_VERSION=1.1.8
# websocket