BTGO游戏盒 v3.4.80版本的 MD5 值为:000032bab1addaabfdc671ee6a7087ab

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


package com.qq.gdt.action.i;

import com.qq.gdt.action.e;
import com.qq.gdt.action.f.b.i;
import com.qq.gdt.action.f.f;
import com.qq.gdt.action.j.h;
import com.qq.gdt.action.j.l;
import com.qq.gdt.action.j.n;
import com.qq.gdt.action.j.o;
import com.qq.gdt.action.j.p;
import com.qq.gdt.action.j.u;
import com.qq.gdt.action.j.v;
import com.umeng.analytics.pro.am;
import org.json.JSONException;
import org.json.JSONObject;

public class c {
    public static f a() {
        f fVar = new f();
        String str = p.b() ? "https://a.gdt.qq.com/package_name" : "http://a.gdt.qq.com/package_name";
        try {
            JSONObject jSONObject = new JSONObject();
            if (e.a().h() != null) {
                jSONObject.putOpt("gk", com.qq.gdt.action.j.d.b(e.a().h()));
            }
            jSONObject.putOpt(am.f20531o, h.e());
            jSONObject.putOpt("sdkv", com.qq.gdt.action.f.a());
            o.a("PackageNameService#launch 正式请求\n" + n.a(jSONObject.toString()), new Object[0]);
            i a10 = com.qq.gdt.action.f.b.d().a(str).a(jSONObject.toString().getBytes()).b().a();
            o.a("PackageNameService launch response = " + a10, new Object[0]);
            if (a10 != null) {
                try {
                    JSONObject jSONObject2 = new JSONObject(a10.e().b());
                    if (a10.c() != 200) {
                        o.a("response.code() not 200", new Object[0]);
                        fVar.a(-17);
                        fVar.a("response.code() not 200");
                    } else {
                        fVar.a(jSONObject2.optInt("code", -3));
                        fVar.a(jSONObject2.optString("message", "Deserialize message error"));
                        if (jSONObject2.has(com.alipay.sdk.packet.e.f1979k)) {
                            fVar = a(jSONObject2.getJSONObject(com.alipay.sdk.packet.e.f1979k), fVar);
                        }
                    }
                } catch (Exception unused) {
                    o.a("Deserialize service response error", new Object[0]);
                    fVar.a(-3);
                    fVar.a("Deserialize service response error");
                }
            }
        } catch (Throwable th) {
            o.b(v.a("PackageNameService launch(%s) exception", str), th);
        }
        return fVar;
    }

    public static f a(JSONObject jSONObject, f fVar) {
        String str;
        int i10;
        String str2;
        if (jSONObject == null) {
            str = "dataJsonObj is null";
            o.a("dataJsonObj is null", new Object[0]);
            i10 = -12;
        } else {
            String optString = jSONObject.optString("version");
            String optString2 = jSONObject.optString("sig");
            String optString3 = jSONObject.optString(com.alipay.sdk.packet.e.f1979k);
            if (!v.a(optString) && !v.a(optString2) && !v.a(optString3)) {
                o.a("package name getinfo version = " + optString + " sign = " + optString2 + " data = " + optString3, new Object[0]);
                if (l.a(optString2, u.a(com.qq.gdt.action.j.i.b(optString3)))) {
                    String str3 = new String(com.qq.gdt.action.j.i.b(optString3));
                    o.a("package name getinfo version = " + optString + "original_config_str = " + n.a(str3), new Object[0]);
                    try {
                        JSONObject jSONObject2 = new JSONObject(str3);
                        String optString4 = jSONObject2.optString("userActionSetId");
                        String optString5 = jSONObject2.optString("actionSetKey");
                        String optString6 = jSONObject2.optString("channel");
                        String optString7 = jSONObject2.optString("channleIds");
                        String optString8 = jSONObject2.optString("gifm");
                        o.a("package name update version = " + optString + "userActionSetId = " + optString4 + "actionSetKey = " + optString5 + "channleIds = " + optString7 + "original_config_str = " + n.a(str3), new Object[0]);
                        if (v.a(optString4) || v.a(optString5)) {
                            o.a("userActionSetId or actionSetKey is empty", new Object[0]);
                            fVar.a(-16);
                            fVar.a("userActionSetId or actionSetKey is empty");
                        } else {
                            com.qq.gdt.action.multioprocess.d.a().a(optString4, optString5, optString6, optString7, optString8, true);
                        }
                    } catch (JSONException e10) {
                        o.b(" Json parse exception", e10);
                        fVar.a(-14);
                        str2 = "Json parse exception";
                    }
                    return fVar;
                }
                o.c(" response verifySign error");
                fVar.a(-15);
                str2 = "response verifySign error";
                fVar.a(str2);
                return fVar;
            }
            str = "version or sign or data is null";
            o.a("version or sign or data is null", new Object[0]);
            i10 = -13;
        }
        fVar.a(i10);
        fVar.a(str);
        return fVar;
    }
}