整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3

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


package com.moqi.sdk.utils;

import android.content.Context;
import android.content.SharedPreferences;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class d0 {
    public static String a = "hostcu";
    public static String b = "hostres";
    public static String c = "hostcdn";

    private static class a {
        private static final Method a = a();

        private a() {
        }

        private static Method a() {
            try {
                return SharedPreferences.Editor.class.getMethod("apply", new Class[0]);
            } catch (NoSuchMethodException unused) {
                return null;
            }
        }

        public static void a(SharedPreferences.Editor editor) {
            try {
                Method method = a;
                if (method != null) {
                    method.invoke(editor, new Object[0]);
                    return;
                }
            } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException unused) {
            }
            editor.commit();
        }
    }

    public static String a(Context context) {
        return context == null ? "https://sta.oliver.pub/base.txt" : context.getSharedPreferences("local_data", 0).getString(c, "https://sta.oliver.pub/base.txt");
    }

    public static String a(Context context, String str, String str2) {
        return context.getSharedPreferences("local_data", 0).getString(str, str2);
    }

    public static void a(Context context, String str, Object obj) {
        String obj2;
        if (obj != null) {
            SharedPreferences.Editor edit = context.getSharedPreferences("local_data", 0).edit();
            if (!(obj instanceof String)) {
                if (obj instanceof Integer) {
                    edit.putInt(str, ((Integer) obj).intValue());
                } else if (obj instanceof Boolean) {
                    edit.putBoolean(str, ((Boolean) obj).booleanValue());
                } else if (obj instanceof Float) {
                    edit.putFloat(str, ((Float) obj).floatValue());
                } else if (obj instanceof Long) {
                    edit.putLong(str, ((Long) obj).longValue());
                } else {
                    obj2 = obj.toString();
                }
                a.a(edit);
            }
            obj2 = (String) obj;
            edit.putString(str, obj2);
            a.a(edit);
        }
    }

    public static String b(Context context) {
        return context == null ? "wto.luyalus.com" : context.getSharedPreferences("local_data", 0).getString(a, "wto.luyalus.com");
    }

    public static String c(Context context) {
        return context == null ? "ai.gfwoot.com" : context.getSharedPreferences("local_data", 0).getString(b, "ai.gfwoot.com");
    }
}