替换zhidaohulian为zhidaozhixing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user