九游游戏中心HD v4.6.8.1版本的 MD5 值为:78c397802cc5ffdcc7f5502ede90502e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package cn.ninegame.framework.router;
import android.text.TextUtils;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
public final class a {
public String f442a;
public String b;
Map<String, String> c;
private String d;
private String e;
public a(String str) {
b(str);
}
public static boolean a(String str) {
f.a(false);
if (TextUtils.isEmpty(str)) {
return false;
}
String lowerCase = str.toLowerCase();
return lowerCase.startsWith("http://web.9game.cn/share?") || lowerCase.startsWith("https://web.9game.cn/share?");
}
private void b(String str) {
int indexOf;
if (!TextUtils.isEmpty(str)) {
String trim = str.trim();
try {
trim = URLDecoder.decode(trim, "UTF-8");
} catch (UnsupportedEncodingException e) {
cn.ninegame.library.stat.b.b.b(e);
}
int indexOf2 = trim.indexOf(63);
if (indexOf2 >= 0) {
this.d = trim.substring(indexOf2 + 1);
this.e = trim.substring(0, indexOf2);
} else {
this.e = trim;
}
String str2 = this.d;
if (this.d != null && (indexOf = this.d.indexOf("target=")) >= 0) {
this.b = this.d.substring(indexOf + 7);
str2 = this.d.substring(0, indexOf);
}
if (!TextUtils.isEmpty(str2)) {
if (this.c == null) {
this.c = new HashMap();
}
String[] split = str2.split("&");
for (String str3 : split) {
String[] split2 = str3.split("=");
if (split2.length > 1) {
if (cn.ninegame.framework.a.b.KEY_PAGE_TYPE.equals(split2[0])) {
this.f442a = split2[1];
} else {
this.c.put(split2[0], split2[1]);
}
}
}
}
}
}
}