导航菜单

页面标题

页面副标题

MX Player v1.97.8 - Const.java 源代码

正在查看: MX Player v1.97.8 应用的 Const.java JAVA 源代码文件

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


package com.mxtech.videoplayer.ad.utils;

import android.text.TextUtils;
import androidx.annotation.Keep;
import com.mxtech.videoplayer.ad.online.abtest.ABTest;
import com.mxtech.videoplayer.ad.online.playback.detail.comment.fragment.CommentDetailFragment;
import defpackage.gh4;
import in.juspay.hypersdk.analytics.LogConstants;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map;
import me.jahnen.libaums.core.fs.UsbFile;
import okhttp3.l;

public final class Const {

    @Keep
    public static final String YOU_DEV_KEEEEY = arrayToString(new char[]{'A', 'I', 'z', 'a', 'S', 'y', 'C', '5', 'g', '_', 'j', '2', 'X', 'c', 'D', 'K', 'Y', 'g', 'g', 'a', 'M', 'U', 'd', 'J', 'N', '1', 'R', 'l', 'i', '6', 'X', 'm', '-', 'b', 'k', 'a', '3', 'n', 'o'});
    public static final String a = "https://androidapi.mxplay.com";
    public static final String b = "https://androidapi.mxplay.com/v1/svod/subscribe/groups";
    public static final String c = "https://androidapi.mxplay.com/v1/svod/subscribe/groups/local";
    public static final String d = "https://androidapi.mxplay.com/v1/svod/subscribe/status";
    public static final String e = "https://androidapi.mxplay.com/v1/svod/subscribe/cancel";
    public static final String f = "https://androidapi.mxplay.com/v1/svod/subscribe/initiate";
    public static final String g = "https://androidapi.mxplay.com/v1/svod/subscribe/mandate/initiate";
    public static final String h = "https://androidapi.mxplay.com/v1/svod/subscribe/coupon/group";
    public static final String i = "https://androidapi.mxplay.com/v1/subscription/coupon/redeem/addon";
    public static final String j = "https://androidapi.mxplay.com/v1/svod/subscribe/initiate_coin";
    public static final String k = "https://androidapi.mxplay.com/v1/subscription/nudge/userSubmit";
    public static final String l = "https://androidapi.mxplay.com/v1/svod/rights";
    public static final String m = "https://androidapi.mxplay.com/v1/svod/subscribe/coupons";
    public static final String n = "https://androidapi.mxplay.com/v1/svod/subscribe/dp/local/annual";
    public static final String o = "https://androidapi.mxplay.com";
    public static final String p = "https://androidapi.mxplay.com/v1/tvod/packs";
    public static final String q = "https://androidapi.mxplay.com/v1/tvod/subscribe/initiate";
    public static final String r = "https://androidapi.mxplay.com/v1/svod/user/purchase";
    public static final String s = "https://androidapi.mxplay.com/v1/tvod/user/purchase/history";
    public static final String t = "https://androidapi.mxplay.com/v1/svod/user/transaction/history";
    public static final String u = "https://androidapi.mxplay.com/v1/tvod/user/transaction/history";
    public static final String v = "https://androidapi.mxplay.com/v1/svod/payment/fetchinvoice";
    public static String w;

    public static Map<String, String> a(Map<String, String> map) {
        if (map == null) {
            map = new HashMap<>();
        }
        b(sgj.w(), c(), map);
        return map;
    }

    @Keep
    private static String arrayToString(char[] cArr) {
        StringBuilder sb = new StringBuilder();
        for (char c2 : cArr) {
            sb.append(c2);
        }
        return sb.toString();
    }

    public static void b(String str, String str2, Map map) {
        if (TextUtils.isEmpty(str2)) {
            return;
        }
        map.put(str, str2);
    }

    public static String c() {
        String str;
        LinkedList linkedList;
        ABTest g2 = ABTest.g();
        synchronized (ABTest.r) {
            try {
                str = g2.i;
                if (TextUtils.isEmpty(str)) {
                    StringBuilder sb = new StringBuilder();
                    Iterator it = ABTest.p.keySet().iterator();
                    boolean z = true;
                    while (it.hasNext()) {
                        q f2 = g2.f((String) it.next());
                        if (z) {
                            z = false;
                        } else {
                            sb.append(";");
                        }
                        StringBuilder sb2 = new StringBuilder();
                        sb2.append(f2.f());
                        sb2.append(":");
                        sb2.append(f2 == f2.e() ? LogConstants.DEFAULT_CHANNEL : f2.g());
                        sb.append(sb2.toString());
                    }
                    ABTest.a aVar = g2.l;
                    if (aVar != null && (linkedList = aVar.a) != null) {
                        Iterator it2 = linkedList.iterator();
                        while (it2.hasNext()) {
                            ABTest.b bVar = (ABTest.b) it2.next();
                            if (bVar.c) {
                                sb.append(";");
                                sb.append(bVar.b + ":" + bVar.a);
                            }
                        }
                    }
                    str = sb.toString();
                    g2.i = str;
                }
            } finally {
            }
        }
        return str;
    }

    public static java.util.HashMap d() {
        throw new UnsupportedOperationException("Method not decompiled: com.mxtech.videoplayer.ad.utils.Const.d():java.util.HashMap");
    }

    public static String e(String str, String str2) {
        return zh6.a("https://androidapi.mxplay.com/v1/detail/", str, UsbFile.separator, str2);
    }

    public static String f(String str, String str2) {
        l lVar = null;
        try {
            l.a aVar = new l.a();
            aVar.f(null, "https://androidapi.mxplay.com/v1/comment/hottest");
            lVar = aVar.c();
        } catch (IllegalArgumentException unused) {
        }
        l.a f2 = lVar.f();
        f2.b(CommentDetailFragment.V_ID, str);
        f2.b(CommentDetailFragment.V_TYPE, str2);
        return f2.toString();
    }

    public static String g(String str, String str2, String str3) {
        String a2 = zh6.a("https://androidapi.mxplay.com/v1/detail/", str, UsbFile.separator, str2);
        if (TextUtils.isEmpty(str3)) {
            return a2;
        }
        StringBuilder c2 = yyd.c(a2, "?current_music=");
        c2.append(gh4.f(str3));
        return c2.toString();
    }

    public static String h(String str, String str2, String str3) {
        StringBuilder b2 = rl4.b("https://androidapi.mxplay.com/v1/relatedcards?type=", str, "&id=", str2, "&lang=");
        b2.append(str3);
        return b2.toString();
    }

    public static String i(String str, String str2) {
        return zh6.a("https://androidapi.mxplay.com/v1/profile/", str, UsbFile.separator, str2);
    }

    public static String j(String str, String str2) {
        return zh6.a("https://androidapi.mxplay.com/v1/detail/", str, UsbFile.separator, str2);
    }
}