Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5

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


package com.my.target;

import android.content.Context;
import android.os.Build;
import android.util.Base64;
import com.google.android.gms.common.internal.ImagesContract;
import com.google.firebase.messaging.Constants;
import com.my.target.common.MyTargetVersion;
import com.unity3d.services.core.di.ServiceProvider;
import java.nio.charset.Charset;
import org.json.JSONObject;
public class z4 {
    public static boolean f10752h = true;
    public static String f10753i = "https://ad.mail.ru/sdk/log/";
    public final String f10754a;
    public final String f10755b;
    public String f10756c;
    public int f10757d;
    public String f10758e;
    public String f10759f;
    public String f10760g;

    public z4(String str, String str2) {
        this.f10754a = str;
        this.f10755b = str2;
    }

    public static z4 a(String str) {
        return new z4(str, Constants.IPC_BUNDLE_KEY_SEND_ERROR);
    }

    public void a(Context context) {
        String a8 = a();
        ba.a("send message to log:\n " + a8);
        if (f10752h) {
            z1.a().a(f10753i, Base64.encodeToString(a8.getBytes(Charset.forName("UTF-8")), 0), context);
        }
    }

    public z4 a(int i10) {
        this.f10757d = i10;
        return this;
    }

    public String a() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put(ServiceProvider.NAMED_SDK, "myTarget");
            jSONObject.put("sdkver", MyTargetVersion.VERSION);
            jSONObject.put("os", "Android");
            jSONObject.put("osver", Build.VERSION.RELEASE);
            jSONObject.put("type", this.f10755b);
            jSONObject.put("name", this.f10754a);
            String str = this.f10756c;
            if (str != null) {
                jSONObject.put("message", str);
            }
            int i10 = this.f10757d;
            if (i10 > 0) {
                jSONObject.put("slot", i10);
            }
            String str2 = this.f10758e;
            if (str2 != null) {
                jSONObject.put(ImagesContract.URL, str2);
            }
            String str3 = this.f10759f;
            if (str3 != null) {
                jSONObject.put("bannerId", str3);
            }
            String str4 = this.f10760g;
            if (str4 != null) {
                jSONObject.put("data", str4);
            }
        } catch (Throwable unused) {
        }
        return jSONObject.toString();
    }

    public z4 b(String str) {
        this.f10758e = str;
        return this;
    }

    public void b(Context context) {
        c0.c(new t0.b(21, this, context));
    }

    public z4 c(String str) {
        this.f10759f = str;
        return this;
    }

    public z4 d(String str) {
        this.f10760g = str;
        return this;
    }

    public z4 e(String str) {
        this.f10756c = str;
        return this;
    }
}