public static string[] fgo_server() { var jo = JObject.Parse(NetworkAPI.CreateGetHttpResponse("https://line1-s1-bili-fate.bilibiligame.net/rongame_beta/rgfate/60_member/network/network_config_android_" + FgoMain.get_game_version() + ".json", 500, null)); var ja = (JArray)jo["list"][0]["ser"]; var a = new string[ja.Count]; FgoConstant.fgo_const[5] = ja[0] + FgoConstant.fgo_const[5]; FgoConstant.fgo_const[6] = ja[0] + FgoConstant.fgo_const[6]; return(new string[1] { "00" }); }
public static string[] bili_rsa() { var rsa = new Hashtable { { "app_id", FgoMain.get_app_id() }, { "c", 0 }, { "channel_id", 1 }, { "domain", "p.biligame.com" }, { "domain_switch_count", 0 }, { "dp", "1920*1080" }, { "game_id", FgoMain.get_app_id() }, { "isRoot", 0 }, { "merchant_id", FgoMain.get_merchant_id() }, { "model", "SwitchFgo" }, { "net", 4 }, { "operators", 5 }, { "pf_ver", "4.4.4" }, { "platform_type", 3 }, { "sdk_log_type", 1 }, { "sdk_type", 1 }, { "sdk_ver", "1.6.7.1" }, { "server_id", FgoMain.get_server_id() }, { "support_abis", "x86,armeabi-v7a" }, { "timestamp", FgoMain.get_timestamp() }, { "udid", "Pwc3BzUCYFhhB2ZeIl4i" }, { "ver", FgoMain.get_game_version() }, { "version", 1 } }; var al = new ArrayList(rsa.Keys); al.Sort(); var p0 = ""; foreach (string key in al) { p0 += rsa[key].ToString(); } rsa.Add("uid", ""); rsa.Add("original_domain", ""); rsa.Add("sign", FgoMain.calc_sign(p0)); var jo = JObject.Parse(NetworkAPI.CreateGetHttpResponse("http://p.biligame.com/api/client/rsa", 10000, rsa)); return(new string[2] { jo["hash"].ToString(), jo["rsa_key"].ToString() }); }
public static string[] bili_userinfo(string access_key) { var user = new Hashtable { { "app_id", FgoMain.get_app_id() }, { "c", 0 }, { "channel_id", 1 }, { "domain", "line3-sdkcenter-login.bilibiligame.net" }, { "domain_switch_count", 0 }, { "dp", "1920*1080" }, { "game_id", FgoMain.get_app_id() }, { "isRoot", 0 }, { "merchant_id", FgoMain.get_merchant_id() }, { "model", "SwitchFgo" }, { "net", 4 }, { "operators", 5 }, { "pf_ver", "4.4.4" }, { "platform_type", 3 }, { "sdk_log_type", 1 }, { "sdk_type", 1 }, { "sdk_ver", "1.6.7.1" }, { "server_id", FgoMain.get_server_id() }, { "support_abis", "x86,armeabi-v7a" }, { "timestamp", FgoMain.get_timestamp() }, { "udid", "Pwc3BzUCYFhhB2ZeIl4i" }, { "ver", FgoMain.get_game_version() }, { "version", 1 }, { "access_key", access_key } }; var al = new ArrayList(user.Keys); al.Sort(); var p0 = ""; foreach (string key in al) { p0 += user[key].ToString(); } user.Add("sign", FgoMain.calc_sign(p0)); var jo = JObject.Parse(NetworkAPI.CreateGetHttpResponse("http://line3-sdkcenter-login.bilibiligame.net/api/client/user.info", 10000, user)); return(new string[2] { jo["uname"].ToString(), jo["face"].ToString() }); }