imToken v2.9.3版本的 MD5 值为:42af1a08a3f01f69d2f3782d81007b3c

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


package cmb.pb.util;

import java.util.Hashtable;

public class j {

    private static String f29a = "WebViewFunc";

    public static Hashtable a(String str) {
        Hashtable hashtable = new Hashtable();
        if (str != null) {
            String trim = str.trim();
            int indexOf = trim.indexOf("?");
            if (indexOf > 0) {
                trim = trim.substring(indexOf + 1);
            }
            if (trim.startsWith("?") || trim.startsWith(com.alipay.sdk.sys.a.b)) {
                trim = trim.substring(1);
            }
            String[] split = trim.split(com.alipay.sdk.sys.a.b);
            for (int i = 0; i < split.length; i++) {
                split[i] = split[i].trim();
                int indexOf2 = split[i].indexOf("=");
                if (indexOf2 > 0) {
                    hashtable.put(split[i].substring(0, indexOf2), indexOf2 <= split[i].length() - 1 ? split[i].substring(indexOf2 + 1) : "");
                }
            }
        }
        return hashtable;
    }

    public static String b(String str) {
        if (str == null || !c(str)) {
            return null;
        }
        String substring = str.substring(13);
        int indexOf = substring.indexOf("?");
        if (indexOf > 0) {
            substring = substring.substring(0, indexOf);
        }
        int lastIndexOf = substring.lastIndexOf("/");
        return (indexOf <= 0 || lastIndexOf > indexOf) ? substring : substring.substring(lastIndexOf + 1, indexOf);
    }

    public static boolean c(String str) {
        return str.toLowerCase().indexOf("http://CMBLS/".toLowerCase()) == 0;
    }
}