替换zhidaohulian为zhidaozhixing

This commit is contained in:
tongchenfei
2020-12-29 19:01:06 +08:00
parent 59af90ee34
commit 618cc9a9bf
2 changed files with 4 additions and 1 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.11'
implementation 'com.mogo.httpdns:httpdns-helper:1.0.13'
if (Boolean.valueOf(RELEASE)) {
implementation rootProject.ext.dependencies.httpdnsbase

View File

@@ -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<String,String> map = httpDnsHelper.getAllAddress();
if(map != null) {