小红书.apk(点击下载) / es.java


package c.t.m.g;

/* compiled from: TML */
public class es {

    /* renamed from: a  reason: collision with root package name */
    private String f10118a;

    /* renamed from: b  reason: collision with root package name */
    private fg f10119b;

    public void a() {
    }

    public boolean a(byte[] bArr) {
        if (bArr != null) {
            try {
                if (bArr.length != 0) {
                    byte[] a14 = fj.a(bArr, fj.a("m_log_key", ff.f10196p));
                    if (a14 != null) {
                        if (a14.length != 0) {
                            if (ey.f10154a) {
                                String str = this.f10118a;
                                ey.a(str, "encData size:" + a14.length);
                            }
                            byte[] a15 = fc.a("https://analytics.map.qq.com/tr?mllc", a14);
                            if (a15 == null) {
                                if (ey.f10154a) {
                                    ey.b(this.f10118a, "upload buffer faild");
                                }
                                this.f10119b.a(a14);
                            } else if (ey.f10154a) {
                                String str2 = this.f10118a;
                                ey.b(str2, "upload buffer result:" + new String(a15));
                            }
                            return false;
                        }
                    }
                    if (ey.f10154a) {
                        ey.a(this.f10118a, "upload data enc is null");
                    }
                    return true;
                }
            } catch (Throwable th3) {
                if (ey.f10154a) {
                    ey.a(this.f10118a, "upload exception", th3);
                }
                return false;
            }
        }
        if (ey.f10154a) {
            ey.a(this.f10118a, "upload data is null");
        }
        return true;
    }
}