调研通 v3.0.3版本的 MD5 值为:fe075d21227d488bdb9f6aa09d3b3f35

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


package c.a.f.c;

import android.content.Context;
import android.text.TextUtils;
import com.alipay.sdk.util.j;
import org.json.JSONObject;

public final class a {

    public static final int f154c = 3500;

    public static final String f155d = "http://h5.m.taobao.com/trade/paySuccess.html?bizOrderId=$OrderId$&";

    public static final int f156e = 1000;

    public static final int f157f = 20000;
    public static final String g = "alipay_cashier_dynamic_config";
    public static final String h = "timeout";
    public static final String i = "st_sdk_config";
    public static final String j = "tbreturl";
    private static a k;

    int f158a = f154c;

    public String f159b = f155d;

    private static void c(a aVar) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("timeout", aVar.a());
            jSONObject.put(j, aVar.f159b);
            j.c(c.a.f.g.b.a().f204a, g, jSONObject.toString());
        } catch (Exception unused) {
        }
    }

    private static void d(a aVar, String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            JSONObject optJSONObject = new JSONObject(str).optJSONObject(i);
            aVar.f158a = optJSONObject.optInt("timeout", f154c);
            aVar.f159b = optJSONObject.optString(j, f155d).trim();
        } catch (Throwable unused) {
        }
    }

    private void e(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            JSONObject jSONObject = new JSONObject(str);
            this.f158a = jSONObject.optInt("timeout", f154c);
            this.f159b = jSONObject.optString(j, f155d).trim();
        } catch (Throwable unused) {
        }
    }

    public static a f() {
        if (k == null) {
            a aVar = new a();
            k = aVar;
            String d2 = j.d(c.a.f.g.b.a().f204a, g, null);
            if (!TextUtils.isEmpty(d2)) {
                try {
                    JSONObject jSONObject = new JSONObject(d2);
                    aVar.f158a = jSONObject.optInt("timeout", f154c);
                    aVar.f159b = jSONObject.optString(j, f155d).trim();
                } catch (Throwable unused) {
                }
            }
        }
        return k;
    }

    private void g(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            JSONObject optJSONObject = new JSONObject(str).optJSONObject(i);
            this.f158a = optJSONObject.optInt("timeout", f154c);
            this.f159b = optJSONObject.optString(j, f155d).trim();
        } catch (Throwable unused) {
        }
    }

    private String h() {
        return this.f159b;
    }

    private void i() {
        String d2 = j.d(c.a.f.g.b.a().f204a, g, null);
        if (TextUtils.isEmpty(d2)) {
            return;
        }
        try {
            JSONObject jSONObject = new JSONObject(d2);
            this.f158a = jSONObject.optInt("timeout", f154c);
            this.f159b = jSONObject.optString(j, f155d).trim();
        } catch (Throwable unused) {
        }
    }

    private void j() {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("timeout", a());
            jSONObject.put(j, this.f159b);
            j.c(c.a.f.g.b.a().f204a, g, jSONObject.toString());
        } catch (Exception unused) {
        }
    }

    public final int a() {
        int i2 = this.f158a;
        if (i2 < 1000 || i2 > 20000) {
            return f154c;
        }
        new StringBuilder("DynamicConfig::getJumpTimeout >").append(this.f158a);
        return this.f158a;
    }

    public final void b(Context context) {
        new Thread(new b(this, context)).start();
    }
}