九游游戏中心HD v4.6.8.1版本的 MD5 值为:78c397802cc5ffdcc7f5502ede90502e
以下内容为反编译后的 b.java 源代码,内容仅作参考
package cn.ninegame.gamemanager.pullup;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import cn.ninegame.framework.NineGameClientApplication;
import cn.ninegame.gamemanager.activity.MainActivity;
import cn.ninegame.gamemanager.download.fragment.DownloadUpgradeFragment;
import cn.ninegame.gamemanager.download.fragment.SpecialDownloadPage;
import cn.ninegame.gamemanager.game.gamedetail.GameDetailNativePage;
import cn.ninegame.gamemanager.pullup.c;
import cn.ninegame.hybird.api.bridge.NineGameClientJSBridge;
import cn.ninegame.library.uilib.adapter.webFragment.ForumWebPageFragment;
import cn.ninegame.library.util.be;
import cn.ninegame.library.util.bp;
import cn.ninegame.library.util.cb;
import cn.ninegame.library.util.cc;
import cn.ninegame.sns.favorite.model.pojo.WebFavoriteParameterInfo;
import cn.ninegame.sns.user.homepage.pages.UserHomePageFragment;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.regex.Pattern;
import org.json.JSONObject;
public final class b {
private static NineGameClientApplication f1332a = NineGameClientApplication.a();
private static boolean b = false;
private static String[] b(String str, int i) {
String[] strArr = new String[3];
int i2 = 0;
while (str.indexOf("_") > 0 && i2 != i - 1) {
int indexOf = str.indexOf("_");
strArr[i2] = str.substring(0, indexOf);
str = str.substring(indexOf + 1, str.length());
i2++;
}
strArr[i2] = str;
return strArr;
}
public static boolean a(String str) {
if (TextUtils.isEmpty(str)) {
cn.ninegame.library.stat.b.b.c("%s [verifyHfpString] The hfp String is null or empty", "PullUp#");
return false;
}
int indexOf = str.indexOf("p");
return Pattern.compile("g([1-9]b[1-9][0-9]m[1-9][0-9])").matcher(indexOf != -1 ? str.substring(0, indexOf) : str.substring(0, str.length() - 4)).matches();
}
public static c.j a(String str, int i) {
a aVar;
JSONObject jSONObject;
boolean z;
String str2;
String str3;
boolean z2;
boolean z3;
boolean z4;
boolean z5;
boolean z6;
boolean z7;
boolean z8;
boolean z9;
boolean z10;
boolean z11;
boolean z12;
boolean z13;
boolean z14;
String stringBuffer;
boolean z15;
boolean z16;
boolean z17;
if (!a(str)) {
return a(false, " Invalid argument!", (Object) null);
}
String decode = URLDecoder.decode(str);
if (TextUtils.isEmpty(decode)) {
cn.ninegame.library.stat.b.b.c("%s [stringToHfpInfo] The hfp String is null or empty", "PullUp#");
aVar = null;
} else {
a aVar2 = new a();
int length = decode.length();
String substring = decode.substring(length - 4, length);
aVar2.e = substring;
String substring2 = decode.substring(0, length - 4);
String a2 = cc.a(URLEncoder.encode(substring2));
if (TextUtils.isEmpty(a2) || a2.indexOf(substring) != 0) {
cn.ninegame.library.stat.b.b.c("%s The md5 check is not correct, md5GbmpStr = %s ", "PullUp#", a2);
aVar = null;
} else {
int indexOf = substring2.indexOf(103);
int indexOf2 = substring2.indexOf(98);
int indexOf3 = substring2.indexOf(109);
int indexOf4 = substring2.indexOf(112);
aVar2.f1331a = Integer.valueOf(substring2.substring(indexOf + 1, indexOf2)).intValue();
aVar2.b = Integer.valueOf(substring2.substring(indexOf2 + 1, indexOf3)).intValue();
aVar2.c = Integer.valueOf(substring2.substring(indexOf3 + 1, indexOf4 != -1 ? indexOf4 : substring2.length())).intValue();
if (indexOf4 != -1) {
aVar2.d = substring2.substring(indexOf4 + 1, substring2.length());
}
aVar = aVar2;
}
}
boolean z18 = false;
if (aVar == null || aVar.f1331a != 1) {
jSONObject = null;
z = false;
str2 = null;
} else {
cn.ninegame.library.stat.b.b.a("urlJump#" + aVar.toString(), new Object[0]);
cn.ninegame.gamemanager.startup.b.b.m.a().d().b("prefs_pull_up_from", i);
switch (aVar.b) {
case 11:
String str4 = aVar.d;
if (bp.c(str4)) {
int parseInt = Integer.parseInt(str4);
if (parseInt > 0 && parseInt < 5) {
switch (parseInt) {
case 1:
a("cn.ninegame.gamemanager.home.index.fragment.HomeIndexFragment", "", i);
break;
case 2:
a("cn.ninegame.gamemanager.home.index.fragment.CategoryRankFragment", "", i);
break;
case 3:
a("cn.ninegame.gamemanager.home.index.fragment.DiscoveryFragment", "", i);
break;
case 4:
a("cn.ninegame.gamemanager.home.index.fragment.UserCenterFragment", "", i);
break;
}
} else {
a("cn.ninegame.gamemanager.home.index.fragment.HomeIndexFragment", "", i);
}
} else {
a("cn.ninegame.gamemanager.home.index.fragment.HomeIndexFragment", "", i);
}
jSONObject = null;
z = true;
str2 = null;
break;
case 12:
String[] split = aVar.d.split("_");
String str5 = null;
switch (aVar.c) {
case 11:
if (split.length > 0) {
String str6 = split[0];
str5 = cb.a("/game/detail.html", cn.ninegame.framework.a.b.PAGE_TYPE_GAME_DETAIL, "ymlq", str6, "", str6);
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
break;
}
case 12:
String[] b2 = b(aVar.d, 3);
String str7 = b2[0];
String str8 = b2[1];
String str9 = b2[2];
HashMap hashMap = new HashMap();
hashMap.put(cn.ninegame.framework.a.b.KEY_PAGE_TYPE, cn.ninegame.framework.a.b.PAGE_TYPE_GAME_DETAIL);
hashMap.put("a1", "ymlq");
hashMap.put("a2", str7);
hashMap.put("a3", "");
hashMap.put("gameId", str7);
hashMap.put("ucid", cb.a(str8));
if (!TextUtils.isEmpty(str8) && !TextUtils.isEmpty(str9)) {
hashMap.put("nickName", URLEncoder.encode(str9));
}
hashMap.put("opt", "follow");
str5 = cb.a("/game/detail.html", hashMap);
break;
case 13:
String[] b3 = b(aVar.d, 2);
String str10 = b3[0];
String str11 = b3[1];
HashMap hashMap2 = new HashMap();
hashMap2.put(cn.ninegame.framework.a.b.KEY_PAGE_TYPE, cn.ninegame.framework.a.b.PAGE_TYPE_GAME_DETAIL);
hashMap2.put("a1", "xqy_ymlq");
hashMap2.put("a2", str10);
hashMap2.put("a3", "");
hashMap2.put("gameId", str10);
hashMap2.put("chid", str11);
hashMap2.put("opt", "download");
str5 = cb.a("/game/detail.html", hashMap2);
cn.ninegame.gamemanager.startup.b.b.m.a().d().b("pref_key_from_pullup_download", j.h(Integer.valueOf(str10).intValue()) + cn.ninegame.gamemanager.startup.b.b.m.a().d().a("pref_key_from_pullup_download", ""));
break;
case 20:
String str12 = b(aVar.d, 2)[0];
JSONObject jSONObject2 = new JSONObject();
cc.b(jSONObject2, "game_id", Integer.parseInt(str12));
if (i != 0) {
cn.ninegame.library.util.g.a(DownloadUpgradeFragment.class, jSONObject2);
break;
} else {
Intent intent = new Intent();
intent.putExtra("request", "request_jump_to_fragment");
intent.putExtra("main_fragment_name", DownloadUpgradeFragment.class.getName());
intent.putExtra(WebFavoriteParameterInfo.PARAMS, jSONObject2.toString());
Bundle bundle = new Bundle();
bundle.putParcelable("intent", intent);
cn.ninegame.genericframework.basic.g.a().b().a("handle_jump_web_page", bundle);
break;
}
}
if (str5 != null) {
a(GameDetailNativePage.class.getName(), str5, i);
z17 = true;
} else {
z17 = false;
}
z = z17;
str2 = "ymlq2";
jSONObject = null;
break;
case 13:
String[] split2 = aVar.d.split("_");
String str13 = null;
switch (aVar.c) {
case 11:
if (split2.length > 0) {
String str14 = split2[0];
str13 = cb.c("/article/detail.html", "common", "ymlq", str14, "", str14);
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
break;
}
}
if (str13 != null) {
a(SpecialDownloadPage.class.getName(), str13, i);
z15 = true;
} else {
z15 = false;
}
z = z15;
str2 = "ymlq4";
jSONObject = null;
break;
case 14:
String[] split3 = aVar.d.split("_");
String str15 = null;
switch (aVar.c) {
case 11:
if (split3.length > 0) {
String str16 = split3[0];
str15 = cb.b("/gift/detail.html", "", "ymlq_grlb-" + (i == 1 ? "y" : "n"), str16, "", str16);
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
break;
}
case 12:
if (split3.length > 0) {
String str17 = split3[0];
HashMap hashMap3 = new HashMap();
hashMap3.put(cn.ninegame.framework.a.b.KEY_PAGE_TYPE, "");
hashMap3.put("a1", "ymlq_grlb-" + (i == 1 ? "y" : "n"));
hashMap3.put("a2", str17);
hashMap3.put("a3", "");
hashMap3.put("gameId", str17);
hashMap3.put("opt", "follow");
str15 = cb.a("/gift/list.html", hashMap3);
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
break;
}
case 14:
if (split3.length > 0) {
String str18 = split3[0];
String str19 = null;
if (split3.length > 1) {
str19 = split3[1];
}
str15 = cb.a("/gift/detail.html", "detail_gift", "ymlq_grlb-" + (i == 1 ? "y" : "n"), str18, "", str18, str19, "get");
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
break;
}
case 15:
if (split3.length > 0) {
String str20 = split3[0];
String str21 = null;
if (split3.length > 1) {
str21 = split3[1];
}
str15 = cb.a("/gift/detail.html", "detail_gift", "ymlq_grlb", str20, "", str20, str21, "subscribe");
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
break;
}
}
cn.ninegame.library.stat.b.b.a(aVar.toString(), new Object[0]);
if (str15 != null) {
if (split3.length >= 3 && "1".equals(split3[2])) {
str15 = str15 + "&from=1";
}
a(SpecialDownloadPage.class.getName(), str15, i);
z16 = true;
} else {
z16 = false;
}
z = z16;
str2 = "ymlq3";
jSONObject = null;
break;
case 15:
cn.ninegame.framework.router.h.a().f448a = "socket_back";
b = false;
if (11 == aVar.c && !TextUtils.isEmpty(aVar.d)) {
String[] split4 = aVar.d.split("_");
if (split4.length > 1 && "173".equals(split4[0])) {
String str22 = "http://web.9game.cn/share?" + URLDecoder.decode(split4[1]).replace("@@", "_").replace("^", "&");
cn.ninegame.framework.router.h.a().n = true;
cn.ninegame.framework.router.h.a().b = URLEncoder.encode(str22);
cn.ninegame.framework.router.a aVar3 = new cn.ninegame.framework.router.a(str22);
String str23 = aVar3.b;
if (!TextUtils.isEmpty(str23) && (str23.startsWith("http:") || str23.startsWith("https:"))) {
cn.ninegame.library.f.h.a();
if (!cn.ninegame.library.f.h.b(str23)) {
cn.ninegame.library.stat.b.b.a("urlJump#socket#url not illegal! url:" + str22, new Object[0]);
cn.ninegame.framework.router.h.a().l = true;
b = true;
}
}
String a3 = cn.ninegame.framework.router.f.a(aVar3.f442a);
if (!TextUtils.isEmpty(a3)) {
if ("ignore".equalsIgnoreCase(a3)) {
cn.ninegame.library.stat.b.b.a("urlJump#ignore#jumpCnfInfo:" + a3, new Object[0]);
} else {
if (i == 0) {
cn.ninegame.framework.router.h.a().h = "fileName";
Intent intent2 = new Intent();
intent2.putExtra("request", "url_jump_intent");
if (!TextUtils.isEmpty(str22)) {
intent2.putExtra("url_jump_url", str22);
}
Bundle bundle2 = new Bundle();
bundle2.putParcelable("intent", intent2);
cn.ninegame.genericframework.basic.g.a().b().a("handle_jump_web_page", bundle2);
} else {
cn.ninegame.framework.router.h.a().h = "foreProc";
NineGameClientApplication a4 = NineGameClientApplication.a();
Intent intent3 = new Intent(a4, MainActivity.class);
intent3.setAction("cn.ninegame.gamemanager.action.PULLUP");
intent3.addFlags(335544320);
intent3.addCategory("android.intent.category.LAUNCHER");
intent3.addCategory("android.intent.category.DEFAULT");
intent3.putExtra("request", "url_jump_intent");
if (!TextUtils.isEmpty(str22)) {
intent3.putExtra("url_jump_url", str22);
}
cn.ninegame.library.stat.b.b.a("urlJump#socket#UrlJumpFromCoreProcess url:" + str22, new Object[0]);
a4.startActivity(intent3);
}
z14 = true;
cn.ninegame.framework.router.h.a().j = aVar.d;
cn.ninegame.framework.router.h.a().b();
if (!z14 && !b) {
String[] split5 = aVar.d.split("_");
switch (aVar.c) {
case 11:
if (split5.length > 0) {
String str24 = split5[0];
if (split5.length > 1) {
String replace = URLDecoder.decode(split5[1]).replace("^", "&");
StringBuffer stringBuffer2 = new StringBuffer(cn.ninegame.library.network.net.c.d.a(1).a());
stringBuffer2.append("/client/pageRedirect").append("?pageId=").append(str24).append("&").append(replace);
stringBuffer = stringBuffer2.toString();
} else {
StringBuffer stringBuffer3 = new StringBuffer(cn.ninegame.library.network.net.c.d.a(1).a());
stringBuffer3.append("/client/pageRedirect").append("?pageId=").append(str24);
stringBuffer = stringBuffer3.toString();
}
a(ForumWebPageFragment.class.getName(), stringBuffer, i);
z14 = true;
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
}
default:
z14 = false;
break;
}
}
z = z14;
str2 = "ymlq5";
jSONObject = null;
break;
}
}
}
}
z14 = false;
cn.ninegame.framework.router.h.a().j = aVar.d;
cn.ninegame.framework.router.h.a().b();
if (!z14) {
String[] split52 = aVar.d.split("_");
switch (aVar.c) {
}
}
z = z14;
str2 = "ymlq5";
jSONObject = null;
break;
case 16:
cn.ninegame.modules.account.f.a();
int d = cn.ninegame.modules.account.f.d();
String hexString = d == 0 ? null : Integer.toHexString(d);
String h = cn.ninegame.library.util.l.h(f1332a);
String c = cn.ninegame.library.util.l.c(f1332a);
jSONObject = new JSONObject();
String a5 = cn.ninegame.library.f.d.a(hexString, 2);
String a6 = cn.ninegame.library.f.d.a(h, 2);
cc.b(jSONObject, "ucid", a5);
cc.b(jSONObject, "chid", a6);
cc.b(jSONObject, "versionid", c);
z = true;
str2 = null;
break;
case 17:
if (aVar.c == 18) {
cn.ninegame.library.stat.a.j.b().a("identifyucid", "ymlq", new StringBuilder().append(Integer.parseInt(aVar.d, 16)).toString(), "");
jSONObject = null;
z = false;
str2 = null;
break;
}
jSONObject = null;
z = z18;
str2 = null;
break;
case 18:
case 19:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
default:
z18 = false;
jSONObject = null;
z = z18;
str2 = null;
break;
case 20:
String[] split6 = aVar.d.split("_");
switch (aVar.c) {
case 11:
if (split6.length > 0) {
String str25 = split6[0];
String str26 = null;
if (split6.length > 1) {
str26 = split6[1];
}
a("cn.ninegame.guild.biz.home.fragment.GuildHomeFragment", cb.a("/guild/home.html", cn.ninegame.framework.a.b.PAGE_TYPE_GUILD_HOME, "ghzy_all_ymlq_all", "", str25, str25, str26), i);
z13 = true;
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
}
default:
z13 = false;
break;
}
z = z13;
str2 = "ymlq8";
jSONObject = null;
break;
case 21:
String[] split7 = aVar.d.split("_");
switch (aVar.c) {
case 11:
if (split7.length > 0) {
String str27 = split7[0];
String str28 = null;
if (split7.length > 1) {
str28 = split7[1];
}
HashMap hashMap4 = new HashMap();
hashMap4.put(cn.ninegame.framework.a.b.KEY_PAGE_TYPE, "");
hashMap4.put("a1", "ymlq_grlb-" + (i == 1 ? "y" : "n"));
hashMap4.put("a2", str27);
hashMap4.put("a3", "");
hashMap4.put("sceneId", str27);
hashMap4.put("ucid", cb.a(str28));
hashMap4.put("opt", null);
String a7 = cb.a("/guild/hall/detail.html", hashMap4);
cn.ninegame.library.stat.b.b.a(aVar.toString(), new Object[0]);
if (split7.length >= 3 && "1".equals(split7[2])) {
a7 = a7 + "&from=1";
}
a(SpecialDownloadPage.class.getName(), a7, i);
z12 = true;
break;
} else {
cn.ninegame.library.stat.b.b.c("%s The hfp params count is not corrent, hfpInfo = %s", "PullUp#", aVar.toString());
}
break;
default:
z12 = false;
break;
}
z = z12;
str2 = "ymlq7";
jSONObject = null;
break;
case 22:
String[] split8 = aVar.d.split("_");
switch (aVar.c) {
case 11:
String str29 = null;
if (split8.length > 0) {
str29 = split8[0];
}
a(SpecialDownloadPage.class.getName(), cb.d("/guild/base/index.html", "", "", "", "", str29), i);
z11 = true;
break;
default:
z11 = false;
break;
}
jSONObject = null;
z = z11;
str2 = null;
break;
case 30:
String[] split9 = aVar.d.split("_");
switch (aVar.c) {
case 11:
String str30 = split9[0];
String str31 = split9[1];
HashMap hashMap5 = new HashMap();
hashMap5.put(cn.ninegame.framework.a.b.KEY_PAGE_TYPE, "");
hashMap5.put("a1", "");
hashMap5.put("a2", "");
hashMap5.put("a3", "");
hashMap5.put("target_id", Long.valueOf(str30));
hashMap5.put("biz_type", str31);
hashMap5.put("auto_join_group", true);
hashMap5.put("opt", null);
a("cn.ninegame.im.biz.redirect.ChatRedirectFragment", cb.a(null, hashMap5), i);
z10 = true;
break;
default:
z10 = false;
break;
}
jSONObject = null;
z = z10;
str2 = null;
break;
case 31:
String[] split10 = aVar.d.split("_");
switch (aVar.c) {
case 11:
String str32 = split10[0];
HashMap hashMap6 = new HashMap();
hashMap6.put(cn.ninegame.framework.a.b.KEY_PAGE_TYPE, "");
hashMap6.put("a1", "");
hashMap6.put("a2", "");
hashMap6.put("a3", "");
hashMap6.put("ucid", cb.a(str32));
cn.ninegame.library.util.g.b(UserHomePageFragment.class.getName(), cb.a(null, hashMap6));
z9 = true;
break;
default:
z9 = false;
break;
}
jSONObject = null;
z = z9;
str2 = null;
break;
case 32:
String[] split11 = aVar.d.split("_");
switch (aVar.c) {
case 11:
String str33 = null;
if (split11.length > 0) {
str33 = split11[0];
}
JSONObject jSONObject3 = new JSONObject();
cc.b(jSONObject3, "tab", str33);
a("cn.ninegame.star.rank.StarRankListPagesFragment", jSONObject3, i);
z8 = true;
break;
default:
z8 = false;
break;
}
jSONObject = null;
z = z8;
str2 = null;
break;
case 33:
String[] split12 = aVar.d.split("_");
switch (aVar.c) {
case 11:
String str34 = null;
String str35 = "1";
if (split12.length > 0) {
str34 = split12[0];
if (split12.length > 1) {
str35 = split12[1];
}
}
JSONObject jSONObject4 = new JSONObject();
cc.a(jSONObject4, "starUcid", Long.parseLong(str34, 16));
cc.b(jSONObject4, "bundle_tab_label", str35);
a("cn.ninegame.star.tribe.StarClubFragment", jSONObject4, i);
z7 = true;
break;
default:
z7 = false;
break;
}
jSONObject = null;
z = z7;
str2 = null;
break;
case 34:
aVar.d.split("_");
switch (aVar.c) {
case 11:
a("cn.ninegame.feed.feedlist.topiclist.FeedListFragment", "", i);
z6 = true;
break;
default:
z6 = false;
break;
}
jSONObject = null;
z = z6;
str2 = null;
break;
case 35:
String str36 = aVar.d;
switch (aVar.c) {
case 11:
JSONObject jSONObject5 = new JSONObject();
cc.b(jSONObject5, "topicId", str36);
a("cn.ninegame.feed.feedlist.detail.TopicDetailFragment", jSONObject5, i);
z5 = true;
break;
default:
z5 = false;
break;
}
jSONObject = null;
z = z5;
str2 = null;
break;
case 36:
aVar.d.split("_");
switch (aVar.c) {
case 11:
a("cn.ninegame.feed.publish.TopicPostFragment", "", i);
z4 = true;
break;
default:
z4 = false;
break;
}
jSONObject = null;
z = z4;
str2 = null;
break;
case 37:
String[] split13 = aVar.d.split("_");
switch (aVar.c) {
case 11:
String str37 = null;
String str38 = "1";
if (split13.length > 0) {
str37 = split13[0];
if (split13.length > 1) {
str38 = split13[1];
}
}
a("cn.ninegame.live.fragment.RoomFragment", m.a(str37, str38, 3), i);
z3 = true;
break;
default:
z3 = false;
break;
}
jSONObject = null;
z = z3;
str2 = null;
break;
case 38:
aVar.d.split("_");
switch (aVar.c) {
case 11:
a("cn.ninegame.live.fragment.LiveHomeFragment", m.a(null, "1", 0), i);
z2 = true;
break;
default:
z2 = false;
break;
}
jSONObject = null;
z = z2;
str2 = null;
break;
}
}
if (z) {
cn.ninegame.library.stat.a.j.b().a("startup", be.a(), str2, String.valueOf(i));
StringBuffer stringBuffer4 = new StringBuffer();
switch (aVar.b) {
case 12:
stringBuffer4.append("game detail page");
break;
case 13:
stringBuffer4.append("article detail page");
break;
case 14:
if (aVar.c == 12) {
stringBuffer4.append("gift list page");
break;
} else {
stringBuffer4.append("gift detail page");
break;
}
}
stringBuffer4.append("-->");
switch (aVar.c) {
case 11:
stringBuffer4.append("view");
break;
case 12:
stringBuffer4.append("follow");
break;
case 13:
stringBuffer4.append("donwload");
break;
case 14:
stringBuffer4.append("get");
break;
case 15:
stringBuffer4.append("subcribe");
break;
}
str3 = stringBuffer4.toString();
} else {
str3 = " Invalid argument!";
}
return a(z, str3, jSONObject);
}
private static c.j a(boolean z, String str, Object obj) {
JSONObject genCallbackJson = NineGameClientJSBridge.genCallbackJson(z, str, obj);
c.j jVar = new c.j(genCallbackJson.toString());
cn.ninegame.library.stat.b.b.a("SocketService response:" + genCallbackJson.toString(), new Object[0]);
jVar.a("Content-Type", "application/json");
jVar.a("Access-Control-Allow-Origin", "*");
return jVar;
}
private static void a(String str, String str2, int i) {
if (i != 0) {
cn.ninegame.library.util.g.b(str, str2);
return;
}
Intent intent = new Intent();
intent.putExtra("request", "request_jump_to_fragment");
intent.putExtra("main_fragment_name", str);
if (!TextUtils.isEmpty(str2)) {
intent.putExtra("url", str2);
}
Bundle bundle = new Bundle();
bundle.putParcelable("intent", intent);
cn.ninegame.genericframework.basic.g.a().b().a("handle_jump_web_page", bundle);
}
private static void a(String str, JSONObject jSONObject, int i) {
if (i != 0) {
cn.ninegame.library.util.g.a(str, jSONObject);
return;
}
Intent intent = new Intent();
intent.putExtra("request", "request_jump_to_fragment");
intent.putExtra("main_fragment_name", str);
if (jSONObject != null) {
intent.putExtra(WebFavoriteParameterInfo.PARAMS, jSONObject.toString());
}
Bundle bundle = new Bundle();
bundle.putParcelable("intent", intent);
cn.ninegame.genericframework.basic.g.a().b().a("handle_jump_web_page", bundle);
}
}