导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - b.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 b.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mbridge.msdk.c;

import android.content.Context;
import android.text.TextUtils;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.tools.ac;
import com.mbridge.msdk.foundation.tools.v;
import java.util.HashMap;
import org.json.JSONObject;

public class b {

    public static final String f6743a = "b";
    private static b b;

    private static HashMap<String, d> f6744c = new HashMap<>();

    private static volatile a f6745d = null;

    private b() {
    }

    private d h(String str, String str2) {
        if (TextUtils.isEmpty(str)) {
            str = com.mbridge.msdk.foundation.controller.a.d().g();
        }
        String C = android.support.v4.media.b.C(str, "_", str2);
        if (f6744c.containsKey(C)) {
            return f6744c.get(C);
        }
        d dVar = null;
        try {
            dVar = d.b(com.mbridge.msdk.foundation.a.a.a.a().b(C));
            f6744c.put(C, dVar);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
        return dVar;
    }

    public final void a(String str, String str2, String str3) {
        String C = android.support.v4.media.b.C(str, "_", str2);
        com.mbridge.msdk.foundation.a.a.a.a().a(C, str3);
        f6744c.put(C, d.b(str3));
    }

    public final void b(String str, String str2) {
        com.mbridge.msdk.foundation.a.a.a.a().a(str, str2);
        f6745d = a.c(str2);
        if (f6745d != null) {
            f6745d.ad();
        }
    }

    public final String c(String str) {
        if (str == null) {
            return "";
        }
        try {
            String b2 = com.mbridge.msdk.foundation.a.a.a.a().b(str);
            return b2 == null ? "" : b2;
        } catch (Exception e2) {
            if (MBridgeConstans.DEBUG) {
                e2.printStackTrace();
            }
            return "";
        }
    }

    public final String d(String str) {
        return com.mbridge.msdk.foundation.a.a.a.a().b("ivreward_" + str);
    }

    public final d e(String str, String str2) {
        d h2 = h(str, str2);
        if (h2 != null && h2.i() == 0) {
            h2.c(1);
        }
        return h2;
    }

    public final d f(String str, String str2) {
        return h(str, str2);
    }

    public final void g(String str, String str2) {
        try {
            String b2 = com.mbridge.msdk.foundation.a.a.a.a().b(str + "_" + str2);
            if (TextUtils.isEmpty(b2)) {
                return;
            }
            JSONObject jSONObject = new JSONObject(b2);
            jSONObject.put("current_time", System.currentTimeMillis());
            a(str, str2, jSONObject.toString());
        } catch (Throwable th) {
            v.d(f6743a, th.getMessage());
        }
    }

    public final d d(String str, String str2) {
        d h2 = h(str, str2);
        return h2 == null ? d.k() : h2;
    }

    public final void f(String str) {
        try {
            String c2 = c(str);
            if (TextUtils.isEmpty(c2)) {
                return;
            }
            JSONObject jSONObject = new JSONObject(c2);
            jSONObject.put("current_time", System.currentTimeMillis());
            b(str, jSONObject.toString());
        } catch (Throwable th) {
            v.d(f6743a, th.getMessage());
        }
    }

    public final d c(String str, String str2) {
        d e2 = e(str, str2);
        return e2 == null ? d.k() : e2;
    }

    public final void e(String str) {
        com.mbridge.msdk.foundation.a.a.a.a().c("ivreward_" + str);
    }

    public final a b(String str) {
        if (f6745d == null) {
            try {
                f6745d = a.c(com.mbridge.msdk.foundation.a.a.a.a().b(str));
                if (f6745d != null) {
                    f6745d.ad();
                }
            } catch (Exception e2) {
                e2.printStackTrace();
            }
        }
        return f6745d;
    }

    public final a g(String str) {
        try {
            if (TextUtils.isEmpty(str)) {
                return b();
            }
            a b2 = b(str);
            return b2 == null ? b() : b2;
        } catch (Exception unused) {
            return b();
        }
    }

    public static synchronized b a() {
        b bVar;
        synchronized (b.class) {
            if (b == null) {
                b = new b();
            }
            bVar = b;
        }
        return bVar;
    }

    public final a b() {
        a aVar = new a();
        aVar.r(1);
        aVar.e(true);
        aVar.c(3600L);
        aVar.d(0L);
        aVar.d(false);
        aVar.c(false);
        aVar.a(7200L);
        aVar.b("mbridge");
        aVar.p(1);
        aVar.b(1800L);
        aVar.q(259200);
        aVar.e(10L);
        aVar.k(1);
        aVar.j(1);
        aVar.l(1);
        aVar.m(0);
        aVar.n(1);
        aVar.o(-1);
        aVar.c(0);
        aVar.e("https://cdn-adn-https.rayjump.com/cdn-adn/v2/portal/19/08/20/11/06/5d5b63cb457e2.js");
        aVar.d("https://mtg-native.rayjump.com/omsdk/omsdkjs_common_js.txt");
        aVar.b(120);
        aVar.f(false);
        aVar.t(0);
        aVar.u(120);
        aVar.v(1);
        aVar.g(com.mbridge.msdk.foundation.same.a.w);
        aVar.f(com.mbridge.msdk.foundation.same.a.y);
        aVar.e(com.mbridge.msdk.foundation.same.a.x);
        aVar.a(10);
        aVar.h(com.mbridge.msdk.foundation.same.a.z);
        aVar.d(10);
        aVar.x(0);
        aVar.w(0);
        aVar.a("");
        aVar.y(1);
        aVar.b(false);
        aVar.s(1);
        aVar.a(true);
        return aVar;
    }

    public final boolean a(String str) {
        a b2 = b(str);
        if (b2 != null) {
            return b2.U() + (b2.T() * 1000) <= System.currentTimeMillis();
        }
        return true;
    }

    public final boolean a(String str, int i2, String str2) {
        try {
            Context f2 = com.mbridge.msdk.foundation.controller.a.d().f();
            String str3 = str + "_" + i2 + "_" + str2;
            long currentTimeMillis = System.currentTimeMillis();
            long j2 = 0;
            long longValue = ((Long) ac.b(f2, str3, 0L)).longValue();
            a b2 = b(str);
            if (b2 == null) {
                b2 = a().b();
            } else {
                j2 = longValue;
            }
            if ((b2.N() * 1000) + j2 > currentTimeMillis) {
                return false;
            }
            ac.a(f2, str3, Long.valueOf(currentTimeMillis));
            return true;
        } catch (Exception e2) {
            e2.printStackTrace();
            return false;
        }
    }

    public final boolean a(String str, String str2) {
        a b2 = b(str2);
        if (a(str2) && a(str2, 1, str)) {
            new c().a(com.mbridge.msdk.foundation.controller.a.d().f(), str2, com.mbridge.msdk.foundation.controller.a.d().i());
        }
        d e2 = e(str2, str);
        if (b2 != null && e2 != null) {
            long P = b2.P() * 1000;
            if (e2.t() + P > System.currentTimeMillis()) {
                return false;
            }
        }
        return true;
    }

    public static void a(android.content.Context r5, java.lang.String r6) {
        throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.c.b.a(android.content.Context, java.lang.String):void");
    }
}