From 618cc9a9bf237d18d143f19c458bfb9889ec3cfd Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Tue, 29 Dec 2020 19:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2zhidaohulian=E4=B8=BAzhidaozh?= =?UTF-8?q?ixing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- foudations/httpdns-mogo/build.gradle | 2 +- .../src/main/java/com/mogo/httpdns/mogo/MogoHttpDns.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/foudations/httpdns-mogo/build.gradle b/foudations/httpdns-mogo/build.gradle index b54a1f2a00..549177f587 100644 --- a/foudations/httpdns-mogo/build.gradle +++ b/foudations/httpdns-mogo/build.gradle @@ -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.11' + implementation 'com.mogo.httpdns:httpdns-helper:1.0.13' if (Boolean.valueOf(RELEASE)) { implementation rootProject.ext.dependencies.httpdnsbase diff --git a/foudations/httpdns-mogo/src/main/java/com/mogo/httpdns/mogo/MogoHttpDns.java b/foudations/httpdns-mogo/src/main/java/com/mogo/httpdns/mogo/MogoHttpDns.java index d556f51cc1..375771761f 100644 --- a/foudations/httpdns-mogo/src/main/java/com/mogo/httpdns/mogo/MogoHttpDns.java +++ b/foudations/httpdns-mogo/src/main/java/com/mogo/httpdns/mogo/MogoHttpDns.java @@ -50,6 +50,9 @@ public class MogoHttpDns implements IMogoHttpDns, HttpDns, OnAddressChangedListe @Override public void getHttpDnsIp(String host, int type, boolean useCache, IHttpDnsCallback callback) { + if (host.contains("zhidaohulian")) { + host = host.replace("zhidaohulian", "zhidaozhixing"); + } Logger.d("MogoHttpDns", "host: " + host + " type: " + type); Map map = httpDnsHelper.getAllAddress(); if(map != null) {