涩里番 v4.2版本的 MD5 值为:b7af51031b798a68c7a3a9ba5a0dff66
以下内容为反编译后的 a.java 源代码,内容仅作参考
package n2;
import af.j;
import android.content.Context;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import v2.e;
public final class a {
public static a f11827p;
public int f11828a = 10000;
public boolean f11829b = false;
public String f11830c = "https://h5.m.taobao.com/mlapp/olist.html";
public int f11831d = 10;
public boolean f11832e = true;
public boolean f11833f = true;
public boolean f11834g = false;
public boolean f11835h = true;
public boolean f11836i = true;
public String f11837j = "";
public boolean f11838k = false;
public boolean f11839l = false;
public boolean f11840m = false;
public boolean f11841n = false;
public List<b> f11842o = null;
public class RunnableC0194a implements Runnable {
public final t2.a f11843i;
public final Context f11844j;
public RunnableC0194a(t2.a aVar, Context context) {
this.f11843i = aVar;
this.f11844j = context;
}
@Override
public final void run() {
try {
q2.a f10 = new r2.b(0).f(this.f11843i, this.f11844j, "");
if (f10 != null) {
a aVar = a.this;
String str = f10.f13841c;
Objects.requireNonNull(aVar);
if (!TextUtils.isEmpty(str)) {
JSONObject optJSONObject = new JSONObject(str).optJSONObject("st_sdk_config");
if (optJSONObject != null) {
aVar.b(optJSONObject);
} else {
n.b.r("DynCon", "empty config");
}
}
a aVar2 = a.this;
Objects.requireNonNull(aVar2);
try {
e.b(null, (Context) d2.d.a().f6607j, "alipay_cashier_dynamic_config", aVar2.e().toString());
} catch (Exception e10) {
n.b.e(e10);
}
}
} catch (Throwable th) {
n.b.e(th);
}
}
}
public static final class b {
public final String f11846a;
public final int f11847b;
public final String f11848c;
public b(String str, int i2, String str2) {
this.f11846a = str;
this.f11847b = i2;
this.f11848c = str2;
}
public static JSONObject a(b bVar) {
if (bVar == null) {
return null;
}
try {
return new JSONObject().put("pn", bVar.f11846a).put("v", bVar.f11847b).put("pk", bVar.f11848c);
} catch (JSONException e10) {
n.b.e(e10);
return null;
}
}
public final String toString() {
return String.valueOf(a(this));
}
}
public static a d() {
if (f11827p == null) {
a aVar = new a();
f11827p = aVar;
Objects.requireNonNull(aVar);
String c10 = e.c(null, (Context) d2.d.a().f6607j, "alipay_cashier_dynamic_config", null);
if (!TextUtils.isEmpty(c10)) {
try {
aVar.b(new JSONObject(c10));
} catch (Throwable th) {
n.b.e(th);
}
}
}
return f11827p;
}
public final int a() {
int i2 = this.f11828a;
if (i2 >= 1000 && i2 <= 20000) {
StringBuilder r = j.r("time = ");
r.append(this.f11828a);
n.b.r("DynCon", r.toString());
return this.f11828a;
}
n.b.r("DynCon", "time(def) = 10000");
return 10000;
}
public final void b(JSONObject jSONObject) {
this.f11828a = jSONObject.optInt("timeout", 10000);
this.f11829b = jSONObject.optBoolean("h5_port_degrade", false);
this.f11830c = jSONObject.optString("tbreturl", "https://h5.m.taobao.com/mlapp/olist.html").trim();
this.f11831d = jSONObject.optInt("configQueryInterval", 10);
JSONArray optJSONArray = jSONObject.optJSONArray("launchAppSwitch");
ArrayList arrayList = null;
if (optJSONArray != null) {
ArrayList arrayList2 = new ArrayList();
int length = optJSONArray.length();
for (int i2 = 0; i2 < length; i2++) {
JSONObject optJSONObject = optJSONArray.optJSONObject(i2);
b bVar = optJSONObject == null ? null : new b(optJSONObject.optString("pn"), optJSONObject.optInt("v", 0), optJSONObject.optString("pk"));
if (bVar != null) {
arrayList2.add(bVar);
}
}
arrayList = arrayList2;
}
this.f11842o = arrayList;
this.f11832e = jSONObject.optBoolean("scheme_pay_2", true);
this.f11833f = jSONObject.optBoolean("intercept_batch", true);
this.f11834g = jSONObject.optBoolean("deg_log_mcgw", false);
this.f11835h = jSONObject.optBoolean("deg_start_srv_first", true);
this.f11836i = jSONObject.optBoolean("prev_jump_dual", true);
this.f11837j = jSONObject.optString("use_sc_only", "");
this.f11838k = jSONObject.optBoolean("bind_use_imp", false);
this.f11839l = jSONObject.optBoolean("retry_bnd_once", false);
this.f11840m = jSONObject.optBoolean("skip_trans", false);
this.f11841n = jSONObject.optBoolean("up_before_pay", false);
}
public final void c(t2.a aVar, Context context) {
new Thread(new RunnableC0194a(aVar, context)).start();
}
public final JSONObject e() {
JSONArray jSONArray;
JSONObject jSONObject = new JSONObject();
jSONObject.put("timeout", a());
jSONObject.put("h5_port_degrade", this.f11829b);
jSONObject.put("tbreturl", this.f11830c);
jSONObject.put("configQueryInterval", this.f11831d);
List<b> list = this.f11842o;
if (list == null) {
jSONArray = null;
} else {
JSONArray jSONArray2 = new JSONArray();
for (b bVar : list) {
jSONArray2.put(b.a(bVar));
}
jSONArray = jSONArray2;
}
jSONObject.put("launchAppSwitch", jSONArray);
jSONObject.put("scheme_pay_2", this.f11832e);
jSONObject.put("intercept_batch", this.f11833f);
jSONObject.put("deg_log_mcgw", this.f11834g);
jSONObject.put("deg_start_srv_first", this.f11835h);
jSONObject.put("prev_jump_dual", this.f11836i);
jSONObject.put("use_sc_only", this.f11837j);
jSONObject.put("bind_use_imp", this.f11838k);
jSONObject.put("retry_bnd_once", this.f11839l);
jSONObject.put("skip_trans", this.f11840m);
jSONObject.put("up_before_pay", this.f11841n);
return jSONObject;
}
}