龙将斩千 v5.5.5.39856版本的 MD5 值为:5c05b1d6f8d872ca3fe0343d6ff07caf

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


package com.anysdk.framework;

import androidx.core.app.NotificationCompat;
import ch.qos.logback.core.CoreConstants;
import com.umarkgame.umarksdk.constant.FinalValue;
import cz.msebera.android.httpclient.cookie.ClientCookie;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;

public class Statistics {
    private static String appID = "e1d0208040c0b4e2";
    private static String url = "http://c.kp747.com/k.js";
    private static String LOG_TAG = "Statistics";
    private static ArrayList<Hashtable<String, String>> list = new ArrayList<>();

    public static void callFunction(String str, String str2) {
        PluginHelper.logD(LOG_TAG, "callFunction(" + str + "," + str2 + ")");
        try {
            Hashtable<String, String> channelInfo = Wrapper.getChannelInfo();
            Hashtable<String, String> hashtable = new Hashtable<>();
            hashtable.put("action", "callFunction");
            hashtable.put("plugin_name", str);
            hashtable.put("function_name", str2);
            if (channelInfo.containsKey("uApiKey")) {
                hashtable.put("uapi_key", channelInfo.get("uApiKey"));
                countNow(getRef(hashtable));
            } else {
                list.add(hashtable);
            }
            pop();
        } catch (Exception e) {
        }
    }

    private static void countNow(String str) {
    }

    public static void createPlugin(String str, int i) {
        PluginHelper.logD(LOG_TAG, "createPlugin(" + str + "," + i + ")");
        try {
            Hashtable<String, String> channelInfo = Wrapper.getChannelInfo();
            Hashtable<String, Hashtable<String, String>> pluginInfo = Wrapper.getPluginInfo();
            Hashtable<String, String> hashtable = new Hashtable<>();
            hashtable.put("action", "createPlugin");
            hashtable.put("plugin_name", str);
            if (Wrapper.getChannelId() == "999999") {
                hashtable.put("plugin_type", String.valueOf(i));
                hashtable.put("plugin_id", Wrapper.getChannelId());
                hashtable.put("plugin_version", PluginWrapper.VERSION);
            } else {
                hashtable.put("plugin_type", pluginInfo.get(str).get("type"));
                hashtable.put("plugin_id", pluginInfo.get(str).get("idPlugin"));
                hashtable.put("plugin_version", pluginInfo.get(str).get(ClientCookie.VERSION_ATTR));
            }
            if (channelInfo.containsKey("uApiKey")) {
                hashtable.put("uapi_key", channelInfo.get("uApiKey"));
                countNow(getRef(hashtable));
            } else {
                list.add(hashtable);
            }
            pop();
        } catch (Exception e) {
        }
    }

    private static String getRef(Hashtable<String, String> hashtable) {
        return hashtable.toString().replace(CoreConstants.CURLY_LEFT, '[').replace(CoreConstants.CURLY_RIGHT, ']');
    }

    public static void initInfo() {
        String str;
        String str2;
        PluginHelper.logD(LOG_TAG, "initInfo");
        try {
            Hashtable<String, String> gameInfo = Wrapper.getGameInfo();
            Hashtable<String, String> toolInfo = Wrapper.getToolInfo();
            Hashtable<String, String> channelInfo = Wrapper.getChannelInfo();
            Hashtable hashtable = new Hashtable();
            hashtable.put("action", "init");
            hashtable.put("game_name", PluginHelper.getApplicationName());
            hashtable.put("game_version", PluginHelper.getApplicationVersion());
            hashtable.put("channel_id", Wrapper.getChannelId());
            hashtable.put("framework", NativeInvoker.getFrameworkVersion());
            if (Wrapper.getChannelId() == "999999") {
                hashtable.put("game_company", "NONE");
                hashtable.put("channel_name", "NONE");
                hashtable.put("channel_type", "NONE");
                hashtable.put("tool_platform", "NONE");
                hashtable.put("tool_time", "NONE");
                hashtable.put("tool_version", "NONE");
                str = "tool_mode";
                str2 = "NONE";
            } else {
                hashtable.put("game_company", gameInfo.get("company"));
                hashtable.put("channel_name", channelInfo.get("nameChannel"));
                hashtable.put("channel_type", channelInfo.get("isCustomChannel"));
                hashtable.put("tool_platform", toolInfo.get("platform"));
                hashtable.put("tool_time", toolInfo.get(FinalValue.TIME));
                hashtable.put("tool_version", toolInfo.get(ClientCookie.VERSION_ATTR));
                str = "tool_mode";
                str2 = toolInfo.get("mode");
            }
            hashtable.put(str, str2);
            countNow(getRef(hashtable));
        } catch (Exception e) {
        }
    }

    public static void onActionResult(String str, int i, String str2) {
        PluginHelper.logD(LOG_TAG, "onActionResult(" + str + "," + i + "," + str2 + ")");
        try {
            Hashtable<String, String> channelInfo = Wrapper.getChannelInfo();
            Hashtable<String, String> hashtable = new Hashtable<>();
            hashtable.put("action", "onActionResult");
            hashtable.put("plugin_name", str);
            hashtable.put("code", String.valueOf(i));
            hashtable.put(NotificationCompat.CATEGORY_MESSAGE, str2);
            if (channelInfo.containsKey("uApiKey")) {
                hashtable.put("uapi_key", channelInfo.get("uApiKey"));
                countNow(getRef(hashtable));
            } else {
                list.add(hashtable);
            }
            pop();
        } catch (Exception e) {
        }
    }

    private static void pop() {
        try {
            Hashtable<String, String> channelInfo = Wrapper.getChannelInfo();
            if (channelInfo.containsKey("uApiKey")) {
                Iterator<Hashtable<String, String>> it = list.iterator();
                while (it.hasNext()) {
                    Hashtable<String, String> next = it.next();
                    next.put("uapi_key", channelInfo.get("uApiKey"));
                    getRef(next);
                    it.remove();
                }
            }
        } catch (Exception e) {
        }
    }
}