热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.qiyukf.unicorn.httpdns.g;
import android.text.TextUtils;
import cn.jpush.android.local.JPushConstants;
import com.qiyukf.unicorn.httpdns.c.d;
import com.tencent.liteav.txcplayer.ext.host.EngineConst;
import com.xiaomi.mipush.sdk.Constants;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public final class b {
public static com.qiyukf.unicorn.httpdns.f.b a(List<String> list, boolean z10, com.qiyukf.unicorn.httpdns.d.b bVar) {
String sb2;
if (list == null || list.isEmpty()) {
return null;
}
StringBuilder sb3 = new StringBuilder();
for (int i10 = 0; i10 < list.size(); i10++) {
String str = list.get(i10);
if (TextUtils.isEmpty(str)) {
str = null;
} else {
if (str.contains(JPushConstants.HTTP_PRE)) {
str = str.replace(JPushConstants.HTTP_PRE, "");
}
if (str.contains(JPushConstants.HTTPS_PRE)) {
str = str.replace(JPushConstants.HTTPS_PRE, "");
}
}
sb3.append(str);
sb3.append(Constants.ACCEPT_TIME_SEPARATOR_SP);
}
String sb4 = sb3.toString();
if (TextUtils.isEmpty(sb4)) {
return null;
}
String substring = sb4.substring(0, sb4.length() - 1);
boolean c10 = com.qiyukf.unicorn.httpdns.a.a().b().c();
StringBuilder sb5 = new StringBuilder();
String b10 = com.qiyukf.unicorn.httpdns.b.a.b(z10);
if (TextUtils.isEmpty(b10)) {
sb2 = null;
} else {
sb5.append(JPushConstants.HTTPS_PRE);
sb5.append(b10);
sb5.append("/httpdns/v2/d?domain=");
sb5.append(substring);
if (c10) {
sb5.append("&scope=");
}
sb2 = sb5.toString();
}
if (TextUtils.isEmpty(sb2)) {
return null;
}
return d.a().a(sb2, a());
}
private static Map<String, String> a() {
HashMap hashMap = new HashMap();
hashMap.put("Accept-Encoding", "gzip");
hashMap.put("X-SDK-VERSION", "v1.3.0.2");
hashMap.put("X-OS-TYPE", "android");
hashMap.put(EngineConst.PluginName.HOST_NAME, "httpdns.n.netease.com");
return hashMap;
}
public static com.qiyukf.unicorn.httpdns.f.b a(boolean z10) {
String str;
String a10 = com.qiyukf.unicorn.httpdns.b.a.a(z10);
if (TextUtils.isEmpty(a10)) {
str = null;
} else {
str = JPushConstants.HTTPS_PRE + a10 + "/httpdns/v2/s";
}
if (TextUtils.isEmpty(str)) {
return null;
}
return com.qiyukf.unicorn.httpdns.c.b.a(str, a());
}
}