50度灰 v5.8.2版本的 MD5 值为:9fe3d350fdc75fa1a3ec45509fa0107e

以下内容为反编译后的 a.java 源代码,内容仅作参考


package c.a.b.d;

import android.content.Context;
import android.text.TextUtils;
import com.alipay.sdk.util.e;
import com.alipay.sdk.util.h;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class a {
    private static final String A = "use_sc_only";
    private static final String B = "bind_use_imp";
    private static final String C = "retry_bnd_once";
    private static final String D = "skip_trans";
    private static final String E = "up_before_pay";
    private static final String F = "scheme_pay_2";
    private static final String G = "intercept_batch";
    private static a H = null;
    private static final String f260a = "DynCon";
    private static final int f261b = 10000;
    private static final String f262c = "https://h5.m.taobao.com/mlapp/olist.html";
    private static final int f263d = 10;
    private static final boolean f264e = true;
    private static final boolean f265f = true;
    private static final boolean f266g = false;
    private static final boolean h = true;
    private static final boolean i = true;
    private static final String j = "";
    private static final boolean k = false;
    private static final boolean l = false;
    private static final boolean m = false;
    private static final boolean n = false;
    private static final int o = 1000;
    private static final int p = 20000;
    private static final String f267q = "alipay_cashier_dynamic_config";
    private static final String r = "timeout";
    private static final String s = "h5_port_degrade";
    private static final String t = "st_sdk_config";
    private static final String u = "tbreturl";
    private static final String v = "launchAppSwitch";
    private static final String w = "configQueryInterval";
    private static final String x = "deg_log_mcgw";
    private static final String y = "deg_start_srv_first";
    private static final String z = "prev_jump_dual";
    private int I = 10000;
    private boolean J = false;
    private String K = f262c;
    private int L = 10;
    private boolean M = true;
    private boolean N = true;
    public boolean O = false;
    private boolean P = false;
    private boolean Q = true;
    private boolean R = true;
    private String S = "";
    private boolean T = false;
    private boolean U = false;
    private boolean V = false;
    private boolean W = false;
    private List<b> X = null;

    public class RunnableC0008a implements Runnable {
        final c.a.b.i.a f268a;
        final Context f269b;

        RunnableC0008a(c.a.b.i.a aVar, Context context) {
            this.f268a = aVar;
            this.f269b = context;
        }

        @Override
        public void run() {
            try {
                c.a.b.h.b a2 = new c.a.b.h.f.b().a(this.f268a, this.f269b);
                if (a2 != null) {
                    a.this.i(a2.b());
                    a.this.d(c.a.b.i.a.a());
                }
            } catch (Throwable th) {
                e.e(th);
            }
        }
    }

    public static final class b {
        public final String f271a;
        public final int f272b;
        public final String f273c;

        public b(String str, int i, String str2) {
            this.f271a = str;
            this.f272b = i;
            this.f273c = str2;
        }

        public static b a(JSONObject jSONObject) {
            if (jSONObject == null) {
                return null;
            }
            return new b(jSONObject.optString("pn"), jSONObject.optInt("v", 0), jSONObject.optString("pk"));
        }

        public static List<b> b(JSONArray jSONArray) {
            if (jSONArray == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            int length = jSONArray.length();
            for (int i = 0; i < length; i++) {
                b a2 = a(jSONArray.optJSONObject(i));
                if (a2 != null) {
                    arrayList.add(a2);
                }
            }
            return arrayList;
        }

        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.f271a).put("v", bVar.f272b).put("pk", bVar.f273c);
            } catch (JSONException e2) {
                e.e(e2);
                return null;
            }
        }

        public String toString() {
            return String.valueOf(d(this));
        }
    }

    public void d(c.a.b.i.a aVar) {
        try {
            h.b(aVar, c.a.b.i.b.a().c(), f267q, z().toString());
        } catch (Exception e2) {
            e.e(e2);
        }
    }

    private void f(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            g(new JSONObject(str));
        } catch (Throwable th) {
            e.e(th);
        }
    }

    private void g(JSONObject jSONObject) {
        this.I = jSONObject.optInt("timeout", 10000);
        this.J = jSONObject.optBoolean(s, false);
        this.K = jSONObject.optString(u, f262c).trim();
        this.L = jSONObject.optInt(w, 10);
        this.X = b.b(jSONObject.optJSONArray(v));
        this.M = jSONObject.optBoolean(F, true);
        this.N = jSONObject.optBoolean(G, true);
        this.P = jSONObject.optBoolean(x, false);
        this.Q = jSONObject.optBoolean(y, true);
        this.R = jSONObject.optBoolean(z, true);
        this.S = jSONObject.optString(A, "");
        this.T = jSONObject.optBoolean(B, false);
        this.U = jSONObject.optBoolean(C, false);
        this.V = jSONObject.optBoolean(D, false);
        this.W = jSONObject.optBoolean(E, false);
    }

    public void i(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            JSONObject optJSONObject = new JSONObject(str).optJSONObject(t);
            if (optJSONObject != null) {
                g(optJSONObject);
            } else {
                e.h(f260a, "empty config");
            }
        } catch (Throwable th) {
            e.e(th);
        }
    }

    public static a x() {
        if (H == null) {
            a aVar = new a();
            H = aVar;
            aVar.y();
        }
        return H;
    }

    private void y() {
        f(h.d(c.a.b.i.a.a(), c.a.b.i.b.a().c(), f267q, null));
    }

    private JSONObject z() throws JSONException {
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("timeout", a());
        jSONObject.put(s, j());
        jSONObject.put(u, m());
        jSONObject.put(w, n());
        jSONObject.put(v, b.c(w()));
        jSONObject.put(F, k());
        jSONObject.put(G, l());
        jSONObject.put(x, o());
        jSONObject.put(y, p());
        jSONObject.put(z, q());
        jSONObject.put(A, r());
        jSONObject.put(B, s());
        jSONObject.put(C, t());
        jSONObject.put(D, u());
        jSONObject.put(E, v());
        return jSONObject;
    }

    public int a() {
        int i2 = this.I;
        if (i2 >= 1000 && i2 <= 20000) {
            e.c(f260a, "time = " + this.I);
            return this.I;
        }
        e.c(f260a, "time(def) = 10000");
        return 10000;
    }

    public void e(c.a.b.i.a aVar, Context context) {
        new Thread(new RunnableC0008a(aVar, context)).start();
    }

    public void h(boolean z2) {
        this.O = z2;
    }

    public boolean j() {
        return this.J;
    }

    public boolean k() {
        return this.M;
    }

    public boolean l() {
        return this.N;
    }

    public String m() {
        return this.K;
    }

    public int n() {
        return this.L;
    }

    public boolean o() {
        return this.P;
    }

    public boolean p() {
        return this.Q;
    }

    public boolean q() {
        return this.R;
    }

    public String r() {
        return this.S;
    }

    public boolean s() {
        return this.T;
    }

    public boolean t() {
        return this.U;
    }

    public boolean u() {
        return this.V;
    }

    public boolean v() {
        return this.W;
    }

    public List<b> w() {
        return this.X;
    }
}