热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package m1;
import android.content.Context;
import android.text.TextUtils;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import z1.e;
import z1.h;
import z1.l;
public final class a {
public static a A;
public JSONObject f35028w;
public int f35006a = 10000;
public boolean f35007b = false;
public String f35008c = "https://h5.m.taobao.com/mlapp/olist.html";
public int f35009d = 10;
public boolean f35010e = true;
public boolean f35011f = false;
public boolean f35012g = false;
public boolean f35013h = false;
public boolean f35014i = true;
public boolean f35015j = true;
public boolean f35016k = false;
public boolean f35017l = false;
public boolean f35018m = false;
public boolean f35019n = false;
public boolean f35020o = true;
public String f35021p = "";
public String f35022q = "";
public boolean f35023r = false;
public boolean f35024s = false;
public boolean f35025t = false;
public int f35026u = 1000;
public boolean f35027v = false;
public boolean f35029x = true;
public List<b> f35030y = null;
public int f35031z = -1;
public class RunnableC0352a implements Runnable {
public final x1.a f35032a;
public final Context f35033b;
public final boolean f35034c;
public final int f35035d;
public RunnableC0352a(x1.a aVar, Context context, boolean z10, int i10) {
this.f35032a = aVar;
this.f35033b = context;
this.f35034c = z10;
this.f35035d = i10;
}
@Override
public void run() {
try {
r1.b h10 = new t1.b().h(this.f35032a, this.f35033b);
if (h10 != null) {
a.this.i(this.f35032a, h10.a());
a.this.g(x1.a.w());
x1.a aVar = this.f35032a;
i1.a.b(aVar, "biz", "offcfg|" + this.f35034c + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.f35035d);
}
} catch (Throwable th) {
e.d(th);
}
}
}
public static final class b {
public final String f35037a;
public final int f35038b;
public final String f35039c;
public b(String str, int i10, String str2) {
this.f35037a = str;
this.f35038b = i10;
this.f35039c = str2;
}
public static List<b> a(JSONArray jSONArray) {
if (jSONArray == null) {
return null;
}
ArrayList arrayList = new ArrayList();
int length = jSONArray.length();
for (int i10 = 0; i10 < length; i10++) {
b b10 = b(jSONArray.optJSONObject(i10));
if (b10 != null) {
arrayList.add(b10);
}
}
return arrayList;
}
public static b b(JSONObject jSONObject) {
if (jSONObject == null) {
return null;
}
return new b(jSONObject.optString("pn"), jSONObject.optInt("v", 0), jSONObject.optString("pk"));
}
public static JSONArray c(List<b> list) {
if (list == null) {
return null;
}
JSONArray jSONArray = new JSONArray();
for (b bVar : list) {
jSONArray.put(d(bVar));
}
return jSONArray;
}
public static JSONObject d(b bVar) {
if (bVar == null) {
return null;
}
try {
return new JSONObject().put("pn", bVar.f35037a).put("v", bVar.f35038b).put("pk", bVar.f35039c);
} catch (JSONException e10) {
e.d(e10);
return null;
}
}
public String toString() {
return String.valueOf(d(this));
}
}
public static a I() {
if (A == null) {
a aVar = new a();
A = aVar;
aVar.z();
}
return A;
}
public boolean A() {
return this.f35024s;
}
public boolean B() {
return this.f35027v;
}
public boolean C() {
return this.f35023r;
}
public boolean D() {
return this.f35029x;
}
public boolean E() {
return this.f35007b;
}
public boolean F() {
return this.f35011f;
}
public boolean G() {
return this.f35019n;
}
public final int H() {
return this.f35026u;
}
public final JSONObject a() throws JSONException {
JSONObject jSONObject = new JSONObject();
jSONObject.put("timeout", r());
jSONObject.put("h5_port_degrade", E());
jSONObject.put("tbreturl", x());
jSONObject.put("configQueryInterval", m());
jSONObject.put("launchAppSwitch", b.c(s()));
jSONObject.put("intercept_batch", p());
jSONObject.put("deg_log_mcgw", n());
jSONObject.put("deg_start_srv_first", o());
jSONObject.put("prev_jump_dual", t());
jSONObject.put("bind_use_imp", k());
jSONObject.put("retry_bnd_once", u());
jSONObject.put("skip_trans", w());
jSONObject.put("start_trans", G());
jSONObject.put("up_before_pay", y());
jSONObject.put("use_sc_lck_a", v());
jSONObject.put("lck_k", q());
jSONObject.put("bind_with_startActivity", l());
jSONObject.put("cfg_max_time", H());
jSONObject.put("get_oa_id", D());
jSONObject.put("notifyFailApp", B());
jSONObject.put("enableStartActivityFallback", C());
jSONObject.put("enableBindExFallback", A());
jSONObject.put("startactivity_in_ui_thread", F());
jSONObject.put("ap_args", b());
return jSONObject;
}
public JSONObject b() {
return this.f35028w;
}
public final void c(String str) {
if (TextUtils.isEmpty(str)) {
return;
}
try {
f(new JSONObject(str));
} catch (Throwable th) {
e.d(th);
}
}
public final void f(JSONObject jSONObject) {
this.f35006a = jSONObject.optInt("timeout", 10000);
this.f35007b = jSONObject.optBoolean("h5_port_degrade", false);
this.f35008c = jSONObject.optString("tbreturl", "https://h5.m.taobao.com/mlapp/olist.html").trim();
this.f35009d = jSONObject.optInt("configQueryInterval", 10);
this.f35030y = b.a(jSONObject.optJSONArray("launchAppSwitch"));
this.f35010e = jSONObject.optBoolean("intercept_batch", true);
this.f35013h = jSONObject.optBoolean("deg_log_mcgw", false);
this.f35014i = jSONObject.optBoolean("deg_start_srv_first", true);
this.f35015j = jSONObject.optBoolean("prev_jump_dual", true);
this.f35016k = jSONObject.optBoolean("bind_use_imp", false);
this.f35017l = jSONObject.optBoolean("retry_bnd_once", false);
this.f35018m = jSONObject.optBoolean("skip_trans", false);
this.f35019n = jSONObject.optBoolean("start_trans", false);
this.f35020o = jSONObject.optBoolean("up_before_pay", true);
this.f35021p = jSONObject.optString("lck_k", "");
this.f35025t = jSONObject.optBoolean("use_sc_lck_a", false);
this.f35027v = jSONObject.optBoolean("notifyFailApp", false);
this.f35022q = jSONObject.optString("bind_with_startActivity", "");
this.f35026u = jSONObject.optInt("cfg_max_time", 1000);
this.f35029x = jSONObject.optBoolean("get_oa_id", true);
this.f35023r = jSONObject.optBoolean("enableStartActivityFallback", false);
this.f35024s = jSONObject.optBoolean("enableBindExFallback", false);
this.f35011f = jSONObject.optBoolean("startactivity_in_ui_thread", false);
this.f35028w = jSONObject.optJSONObject("ap_args");
}
public final void g(x1.a aVar) {
try {
JSONObject a10 = a();
h.c(aVar, x1.b.e().c(), "alipay_cashier_dynamic_config", a10.toString());
} catch (Exception e10) {
e.d(e10);
}
}
public void h(x1.a aVar, Context context, boolean z10, int i10) {
i1.a.b(aVar, "biz", "oncfg|" + z10 + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + i10);
RunnableC0352a runnableC0352a = new RunnableC0352a(aVar, context, z10, i10);
if (z10 && !l.Y()) {
int H = H();
if (l.u(H, runnableC0352a, "AlipayDCPBlok")) {
return;
}
i1.a.h(aVar, "biz", "LogAppFetchConfigTimeout", "" + H);
return;
}
Thread thread = new Thread(runnableC0352a);
thread.setName("AlipayDCP");
thread.start();
}
public final void i(x1.a aVar, String str) {
if (TextUtils.isEmpty(str)) {
return;
}
try {
JSONObject jSONObject = new JSONObject(str);
JSONObject optJSONObject = jSONObject.optJSONObject("st_sdk_config");
z1.a.e(aVar, optJSONObject, z1.a.c(aVar, jSONObject));
if (optJSONObject != null) {
f(optJSONObject);
} else {
e.i("DynCon", "empty config");
}
} catch (Throwable th) {
e.d(th);
}
}
public boolean j(Context context, int i10) {
if (this.f35031z == -1) {
this.f35031z = l.a();
h.c(x1.a.w(), context, "utdid_factor", String.valueOf(this.f35031z));
}
return this.f35031z < i10;
}
public boolean k() {
return this.f35016k;
}
public String l() {
return this.f35022q;
}
public int m() {
return this.f35009d;
}
public boolean n() {
return this.f35013h;
}
public boolean o() {
return this.f35014i;
}
public boolean p() {
return this.f35010e;
}
public String q() {
return this.f35021p;
}
public int r() {
int i10 = this.f35006a;
if (i10 >= 1000 && i10 <= 20000) {
e.f("DynCon", "time = " + this.f35006a);
return this.f35006a;
}
e.f("DynCon", "time(def) = 10000");
return 10000;
}
public List<b> s() {
return this.f35030y;
}
public boolean t() {
return this.f35015j;
}
public boolean u() {
return this.f35017l;
}
public boolean v() {
return this.f35025t;
}
public boolean w() {
return this.f35018m;
}
public String x() {
return this.f35008c;
}
public boolean y() {
return this.f35020o;
}
public void z() {
Context c10 = x1.b.e().c();
String b10 = h.b(x1.a.w(), c10, "alipay_cashier_dynamic_config", null);
try {
this.f35031z = Integer.parseInt(h.b(x1.a.w(), c10, "utdid_factor", "-1"));
} catch (Exception unused) {
}
c(b10);
}
}