GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5

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


package com.my.target;

import android.content.Context;
import android.os.Build;
import android.util.Base64;
import com.google.android.exoplayer2.C;
import com.integralads.avid.library.mopub.video.AvidVideoPlaybackListenerImpl;
import com.my.target.common.MyTargetVersion;
import com.unity3d.ads.metadata.MediationMetaData;
import java.nio.charset.Charset;
import org.json.JSONObject;

public class dh {
    private static String eT = "https://ad.mail.ru/sdk/log/";
    public static boolean eU = true;
    private String eV;
    private String eW;
    private String eX;
    private String h;
    private final String name;
    private int slotId;
    private final String type;

    private dh(String str, String str2) {
        this.name = str;
        this.type = str2;
    }

    public static dh J(String str) {
        return new dh(str, "error");
    }

    public void m(Context context) {
        String dc = dc();
        ae.a("send message to log:\n " + dc);
        if (eU) {
            dd.cW().e(eT, Base64.encodeToString(dc.getBytes(Charset.forName(C.UTF8_NAME)), 0), context);
        }
    }

    public dh K(String str) {
        this.eV = str;
        return this;
    }

    public dh L(String str) {
        this.eW = str;
        return this;
    }

    public dh M(String str) {
        this.eX = str;
        return this;
    }

    String dc() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("sdk", "myTarget");
            jSONObject.put("sdkver", MyTargetVersion.VERSION);
            jSONObject.put("os", "Android");
            jSONObject.put("osver", Build.VERSION.RELEASE);
            jSONObject.put("type", this.type);
            jSONObject.put(MediationMetaData.KEY_NAME, this.name);
            if (this.eV != null) {
                jSONObject.put(AvidVideoPlaybackListenerImpl.MESSAGE, this.eV);
            }
            if (this.slotId > 0) {
                jSONObject.put("slot", this.slotId);
            }
            if (this.eW != null) {
                jSONObject.put("url", this.eW);
            }
            if (this.eX != null) {
                jSONObject.put("bannerId", this.eX);
            }
            if (this.h != null) {
                jSONObject.put("data", this.h);
            }
        } catch (Throwable unused) {
        }
        return jSONObject.toString();
    }

    public void l(final Context context) {
        af.b(new Runnable() {
            @Override
            public final void run() {
                dh.this.m(context);
            }
        });
    }

    public dh y(int i) {
        this.slotId = i;
        return this;
    }
}