Puzzle King v2.3.8版本的 MD5 值为:1734eb975c9d2843afa462aec387292e
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.mbridge.msdk.foundation.same.net.f;
import android.text.TextUtils;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.q;
import com.mbridge.msdk.foundation.tools.v;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.regex.Pattern;
public final class d {
public String A;
public String B;
public int C;
public int D;
public boolean E;
public ArrayList<String> F;
public ArrayList<String> G;
private final String H;
private boolean I;
private int J;
private String K;
private String L;
private String M;
private String N;
private String O;
private String P;
private String Q;
private String R;
private String S;
private String T;
private String U;
private String V;
public String a;
public String b;
public String c;
public String d;
public String e;
public int f;
public int g;
public boolean h;
public int i;
public String j;
public String k;
public String l;
public String m;
public String n;
public String o;
public String p;
public String q;
public String r;
public String s;
public String t;
public String u;
public String v;
public String w;
public String x;
public String y;
public String z;
public static class a {
private static final d a = new d();
}
private d() {
this.H = "RequestUrlUtil";
this.I = true;
this.J = 0;
this.K = "https://{}hb.rayjump.com";
this.a = "https://analytics.rayjump.com";
this.b = "https://net.rayjump.com";
this.c = "https://configure.rayjump.com";
this.d = "configure-tcp.rayjump.com";
this.e = q.b("DkPtYdQTLkfAW+xUhoPwLkPTHkJBDkM/Yr5T");
this.f = 9377;
this.g = 9377;
this.h = false;
this.i = 1;
this.L = "/bid";
this.M = "/load";
this.N = "/openapi/ad/v3";
this.O = "/openapi/ad/v4";
this.P = "/openapi/ad/v5";
this.Q = "/image";
this.R = "/mapping";
this.S = "/setting";
this.T = "/sdk/customid";
this.U = "/rewardsetting";
this.V = "/appwall/setting";
this.j = this.K + this.L;
this.k = this.K + this.M;
this.l = this.b + this.N;
this.m = this.b + this.O;
this.n = this.b + this.P;
this.o = this.b + this.Q;
this.p = this.c + this.S;
this.q = this.c + this.T;
this.r = this.c + this.U;
this.s = this.c + this.R;
this.t = this.c + this.V;
this.u = this.d + this.S;
this.v = this.d + this.T;
this.w = this.d + this.U;
this.x = this.d + this.R;
this.y = this.d + this.V;
this.z = "https://detect.rayjump.com/mapi/find";
this.A = "https://detect.rayjump.com/mapi/result";
this.B = "https://d1tru86qrby720.cloudfront.net/hostsetting";
this.C = 0;
this.D = 0;
this.E = false;
this.F = new ArrayList<>(Arrays.asList("https://configure.rayjump.com", "https://policy.rayjump.com", "https://lazy.rayjump.com", "https://check.rayjump.com"));
this.G = new ArrayList<>(Arrays.asList("configure-tcp.rayjump.com", "policy-tcp.rayjump.com", "lazy-tcp.rayjump.com", "check-tcp.rayjump.com"));
}
public static d a() {
return a.a;
}
public final int b() {
return this.J;
}
public final void a(int i) {
this.J = i;
}
public final String a(String str, int i) {
try {
if (!TextUtils.isEmpty(str)) {
String[] split = str.split("_");
if (split.length > 1) {
return a(true, split[1]);
}
return a(true, "");
}
} catch (Exception e) {
v.d("RequestUrlUtil", e.getMessage());
}
return i % 2 == 0 ? this.n : this.l;
}
public final String a(boolean z, String str) {
if (z) {
if (this.k.contains(JsonUtils.EMPTY_JSON) && !TextUtils.isEmpty(str)) {
return this.k.replace(JsonUtils.EMPTY_JSON, str + "-");
}
return this.k.replace(JsonUtils.EMPTY_JSON, "");
}
return this.j.replace(JsonUtils.EMPTY_JSON, "");
}
public final void c() {
HashMap<String, String> aA;
com.mbridge.msdk.c.a b = com.mbridge.msdk.c.b.a().b(com.mbridge.msdk.foundation.controller.a.d().g());
if (b != null) {
this.h = b.aF() == 2;
this.i = b.aF();
this.I = !b.i(2);
if (b.aA() != null && b.aA().size() > 0 && (aA = b.aA()) != null && aA.size() > 0) {
if (aA.containsKey("v") && !TextUtils.isEmpty(aA.get("v")) && a(aA.get("v"))) {
this.b = aA.get("v");
this.l = this.b + this.N;
this.m = this.b + this.O;
this.n = this.b + this.P;
this.o = this.b + this.Q;
}
if (aA.containsKey(CampaignEx.JSON_KEY_HB) && !TextUtils.isEmpty(aA.get(CampaignEx.JSON_KEY_HB)) && a(aA.get(CampaignEx.JSON_KEY_HB))) {
this.K = aA.get(CampaignEx.JSON_KEY_HB);
this.j = this.K + this.L;
this.k = this.K + this.M;
}
if (aA.containsKey("lg") && !TextUtils.isEmpty(aA.get("lg"))) {
String str = aA.get("lg");
if (a(str)) {
this.a = str;
} else {
this.e = str;
}
}
if (aA.containsKey(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE) && !TextUtils.isEmpty(aA.get(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE)) && a(aA.get(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE))) {
this.A = aA.get(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE);
}
if (aA.containsKey("df") && !TextUtils.isEmpty(aA.get("df")) && a(aA.get("df"))) {
this.z = aA.get("df");
}
}
String z = b.z();
if (!TextUtils.isEmpty(z)) {
this.c = z;
e();
this.F.add(0, z);
}
String A = b.A();
if (TextUtils.isEmpty(A)) {
return;
}
this.d = A;
f();
this.G.add(0, A);
}
}
public final boolean d() {
try {
if (!this.h) {
if (this.F != null && this.C <= this.F.size() - 1) {
this.c = this.F.get(this.C);
e();
return true;
}
} else if (this.G != null && this.D <= this.G.size() - 1) {
if (!a(this.G.get(this.D))) {
this.d = this.G.get(this.D);
f();
}
return true;
}
if (this.E) {
this.C = 0;
this.D = 0;
}
return false;
} catch (Throwable th) {
v.a("RequestUrlUtil", th.getMessage());
return false;
}
}
private boolean a(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
return Pattern.compile("(https|http)://[-A-Za-z0-9{}+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]").matcher(str.trim()).matches();
}
public final void e() {
this.p = this.c + this.S;
this.q = this.c + this.T;
this.r = this.c + this.U;
this.s = this.c + this.R;
this.t = this.c + this.V;
}
public final void f() {
this.u = this.d + this.S;
this.v = this.d + this.T;
this.w = this.d + this.U;
this.x = this.d + this.R;
this.y = this.d + this.V;
}
}