public bool LoginWeb() { string pReferer = ""; string pUrl = this.GetLine() + "/"; string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, pReferer, base.BetsTime2, "UTF-8", true); return(pResponsetext.Contains("澳门巴黎人")); }
public override string LoginLotteryWeb(ConfigurationStatus.LotteryType pType, string pInfo = "") { string lotteryLine = this.GetLotteryLine(pType, false); string indexLine = this.GetIndexLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, lotteryLine, "GET", string.Empty, indexLine, base.BetsTime1, "UTF-8", true); return(pResponsetext); }
public override string LoginLotteryWeb(ConfigurationStatus.LotteryType pType, string pInfo = "") { string lotteryLine = this.GetLotteryLine(pType, true); string pReferer = this.GetLotteryLine(pType, false); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, lotteryLine, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true); return(pResponsetext); }
public bool LoginMainIndexWeb() { string loginLine = this.GetLoginLine(); string indexLine = this.GetIndexLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, indexLine, "GET", string.Empty, loginLine, base.BetsTime2, "UTF-8", true); return(pResponsetext.Contains("彩宏娱乐 - 首页")); }
public bool LoginWeb() { string pReferer = ""; string loginLine = this.GetLoginLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, loginLine, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true); return(pResponsetext != ""); }
public bool LoginWeb() { string pReferer = ""; string loginLine = this.GetLoginLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, loginLine, "GET", string.Empty, pReferer, base.BetsTime2, "UTF-8", true); return(pResponsetext.Contains("宝汇国际")); }
public override void QuitPT() { string quitPTLine = this.GetQuitPTLine(); string indexLine = this.GetIndexLine(); string pResponsetext = ""; string pData = "action=LogOut"; HttpHelper.GetResponse(ref pResponsetext, quitPTLine, "POST", pData, indexLine, 0x2710, "UTF-8", true); }
public override void QuitPT() { string quitPTLine = this.GetQuitPTLine(); string indexLine = this.GetIndexLine(); string pResponsetext = ""; string pData = $"__RequestVerificationToken={base.Token}"; HttpHelper.GetResponse(ref pResponsetext, quitPTLine, "POST", pData, indexLine, 0x2710, "UTF-8", true); }
public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint) { bool flag = false; try { string betsLine = this.GetBetsLine(plan.Type); string lotteryLine = this.GetLotteryLine(plan.Type, true); Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic; foreach (string str3 in fNNumberDic.Keys) { Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3]; foreach (string str4 in dictionary2.Keys) { if (plan.IsMNState(str4, true)) { flag = true; pHint = "投注成功"; } else { string str7; List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string str6 = Guid.NewGuid().ToString(); if (this.CheckLotteryIsVR(plan.Type)) { str7 = "LotteryGameID={0}&IssueSerialNumber=&Bets%5B0%5D%5BBetTypeCode%5D={1}&Bets%5B0%5D%5BBetTypeName%5D=&Bets%5B0%5D%5BNumber%5D={2}&Bets%5B0%5D%5BPosition%5D={3}&Bets%5B0%5D%5BUnit%5D={4}&Bets%5B0%5D%5BMultiple%5D={5}&Bets%5B0%5D%5BIsCompressed%5D=false&StopIfWin=false&__RequestVerificationToken={6}&SerialNumber={7}&Guid={8}"; str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), this.GetRXWZString(plan.RXWZ), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), str6 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime1, "UTF-8", true); } else { string format = "\"BetTypeCode\":{0},\"BetTypeName\":\"\",\"Number\":\"{1}\",\"Position\":\"{4}\",\"Unit\":{2},\"Multiple\":{3},\"ReturnRate\":0,\"IsCompressed\":false,\"CompressedNumber\":\"\""; format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetRXWZString(plan.RXWZ) }); format = "{" + format + "}"; str7 = "\"LotteryGameID\":{0},\"SerialNumber\":\"{1}\",\"Bets\":[{2}],\"Schedules\":[],\"StopIfWin\":false,\"Guid\":\"{3}\""; str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), format, str6 }); str7 = "{" + str7 + "}"; HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime1, "UTF-8", true); } flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); if (!(flag || !this.CheckBreakConnect(pResponsetext))) { AppInfo.PTInfo.PTIsBreak = true; } } } } } catch { } return(flag); }
public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "") { try { string pUrl = this.GetLine() + "/ct-data/loadOpenTime"; string lotteryLine = this.GetLotteryLine(pType, false); string pResponsetext = ""; string pData = $"shortName={this.GetPTLotteryName(pType)}"; HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true); if (pResponsetext != "") { base.Expect = CommFunc.GetIndexString(pResponsetext, "\"currFullExpect\":\"", "\"", 0); base.Expect = CommFunc.ConvertExpect(base.Expect, pType); } if (base.Prize == "") { pUrl = this.GetLine() + "/ct-data/lottery"; lotteryLine = this.GetLotteryLine(pType, false); pResponsetext = ""; string str5 = "wxzhixfs"; if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10) { str5 = "bjpk10qian1"; } else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5) { str5 = "11x5qsfs"; } pData = $"shortName={this.GetPTLotteryName(pType)}&rulecode={str5}"; HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true); if (pResponsetext != "") { base.Prize = CommFunc.GetIndexString(pResponsetext, "\"maxMode\":", ",", 0); double num = 0.128; if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10) { num = 0.128; } else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5) { num = 0.125; } double num2 = Convert.ToDouble(CommFunc.GetIndexString(pResponsetext, "\"repoint\":", ",", 0)) - num; base.Rebate = (num2 > 0.0) ? ((num2 * 100.0)).ToString("0.0") : "0"; double num3 = Convert.ToDouble(CommFunc.GetIndexString(pResponsetext, "\"maxModeLi\":", ",", 0)); if (Convert.ToDouble(base.Prize) > num3) { base.Rebate = "0"; } } } } catch { } }
public override string LoginLotteryWeb(ConfigurationStatus.LotteryType pType, string pInfo = "") { string lotteryLine = this.GetLotteryLine(pType, false); string indexLine = this.GetIndexLine(); string pResponsetext = ""; string pData = $"flag={this.GetPTLotteryName(pType)}Bean"; HttpHelper.GetResponse(ref pResponsetext, lotteryLine, "POST", pData, indexLine, 0x2710, "UTF-8", true); return(pResponsetext); }
public bool LoginMainIndexWeb1() { string pReferer = this.GetLine() + "/CCLHUSR/VioletWood/desktop/agreement.page"; string pUrl = this.GetLine() + "/CCLHUSR/VioletWood/desktop/setAgreement.page"; string pResponsetext = ""; string pData = "txtAgreementFlag=Y"; HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, pReferer, 0x2710, "UTF-8", true); return(pResponsetext.Contains("彩票大厅")); }
public bool LoginWeb() { string loginLine = this.GetLoginLine(); string pUrl = this.GetLine() + "/v1/getToken"; string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, loginLine, 0x2710, "UTF-8", true); base.Token = CommFunc.GetIndexString(pResponsetext, "\"token\":\"", "\"", 0); return(base.Token != ""); }
public bool LoginWeb() { base.VerifyCodeToken = ""; string pReferer = ""; string loginLine = this.GetLoginLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, loginLine, "GET", string.Empty, pReferer, base.BetsTime2, "UTF-8", true); return(pResponsetext != ""); }
public override void QuitPT() { string quitPTLine = this.GetQuitPTLine(); string indexLine = this.GetIndexLine(); string pResponsetext = ""; string pSource = "{}"; pSource = this.GetEncode(pSource, false); HttpHelper.GetResponse(ref pResponsetext, quitPTLine, "POST", pSource, indexLine, 0x2710, "UTF-8", true); }
public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint) { bool flag = false; try { string betsLine = this.GetBetsLine(plan.Type); string lotteryLine = this.GetLotteryLine(plan.Type, false); Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic; foreach (string str3 in fNNumberDic.Keys) { Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3]; foreach (string str4 in dictionary2.Keys) { if (plan.IsMNState(str4, true)) { flag = true; pHint = "投注成功"; } else { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); double num2 = 1.0 / Convert.ToDouble(Math.Pow(10.0, (double)(plan.Unit - 1))); string format = ""; if (CommFunc.CheckPlayIsDS(plan.Play)) { format = "balls%22%3A%7B{1}%7D%2C%22bigCodes%22%3A%22{0}%22%7D%7D%2C%22"; } else { format = "balls%22%3A%7B{0}%7D%7D%7D%2C%22"; } string str7 = ""; if (CommFunc.CheckPlayIsRXDS(plan.Play)) { str7 = HttpUtility.UrlEncode(this.GetRXWZString(plan.RXWZ)); } format = string.Format(format, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), str7); string str8 = "orderlist=%7B%22items%22%3A%7B%22{0}%22%3A%7B%22rulecode%22%3A%22{1}%22%2C%22total%22%3A%22{2}%22%2C%22itemcount%22%3A{3}%2C%22times%22%3A%22{4}%22%2C%22yjf%22%3A{5}%2C%22repoint%22%3A%22{6}%22%2C%22mode%22%3A{7}%2C%22{8}total%22%3A%22{9}%22%2C%22itemcount%22%3A{10}%2C%22ordercount%22%3A{11}%2C%22sumCount%22%3A{12}%2C%22lottery%22%3A%22{13}%22%2C%22currExpect%22%3A%22{14}%22%7D"; string str9 = string.Concat(new object[] { CommFunc.Random(0x3b9aca00, 0x77359400).ToString(), CommFunc.Random(100, 0x3e7), "-", CommFunc.MixRandom(8) }); str8 = string.Format(str8, new object[] { str9, this.GetPlayMethodID(plan.Type, plan.Play), plan.AutoTotalMoney(str4, true), num, Convert.ToInt32(plan.AutoTimes(str4, true)), num2, base.Rebate, base.Prize, format, plan.AutoTotalMoney(str4, true), num, 1, 1, this.GetPTLotteryName(plan.Type), this.GetBetsExpect(plan.CurrentExpect, "") }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, lotteryLine, base.BetsTime3, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); } } } } catch { } return(flag); }
public bool LoginWeb() { string pReferer = ""; string line = this.GetLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, line, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true); bool flag = pResponsetext.Contains("红宝石"); return(true); }
public bool LoginHT() { string pUrl = this.GetLine() + "/?s=/ApiPublic/confirmProvision/"; string pReferer = this.GetLine() + "/?s=/WebPublic/provision/"; string pResponsetext = ""; string pSource = "{\"id\":1}"; pSource = this.GetEncode(pSource, false); HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pSource, pReferer, 0x2710, "UTF-8", true); return(pResponsetext.Contains("\"status\":1")); }
public override string GetWebVerifyCode(string pVerifyCodeFile) { string pVerifyCode = ""; try { bool flag; if (!this.GetLoginYZM()) { return(pVerifyCode); } string loginLine = this.GetLoginLine(); string pUrl = this.GetLine() + "/DefaultCaptcha/Refresh"; string pResponsetext = ""; string pData = $"t={base.VerifyCodeToken}"; int num = 0; goto Label_0092; Label_0051: HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, loginLine, 0x2710, "UTF-8", true); num++; if ((pResponsetext != "") || (num >= 2)) { goto Label_0097; } Label_0092: flag = true; goto Label_0051; Label_0097: if (pResponsetext == "") { return(pVerifyCode); } base.VerifyCodeToken = CommFunc.GetIndexString(pResponsetext, "\"value\", \"", "\"", 0); string str6 = $"/DefaultCaptcha/Generate?t={base.VerifyCodeToken}"; string str7 = this.GetLine() + str6; File.Delete(pVerifyCodeFile); Bitmap bitmap = new Bitmap(HttpHelper.GetResponseImage(str7, loginLine, "GET", "", 0x1770, "UTF-8", true)); bitmap.Save(pVerifyCodeFile); bitmap.Dispose(); while (!File.Exists(pVerifyCodeFile)) { Thread.Sleep(500); } pVerifyCode = VerifyCodeAPI.VerifyCodeMain(base.PTID, pVerifyCodeFile); if (!this.CheckVerifyCode(pVerifyCode)) { return(this.GetWebVerifyCode(pVerifyCodeFile)); } } catch { } return(pVerifyCode); }
public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint) { bool flag = false; try { string betsLine = this.GetBetsLine(plan.Type); string lotteryLine = this.GetLotteryLine(plan.Type, false); Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic; foreach (string str3 in fNNumberDic.Keys) { Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3]; foreach (string str4 in dictionary2.Keys) { if (plan.IsMNState(str4, true)) { flag = true; pHint = "投注成功"; } else { string str7; List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); int num = plan.FNNumber(str4); string pResponsetext = ""; string str6 = Guid.NewGuid().ToString(); if (this.CheckLotteryIsVR(plan.Type)) { str7 = "LotteryGameID={0}&IssueSerialNumber=&Bets%5B0%5D%5BBetTypeCode%5D={1}&Bets%5B0%5D%5BBetTypeName%5D=&Bets%5B0%5D%5BNumber%5D={2}&Bets%5B0%5D%5BPosition%5D={3}&Bets%5B0%5D%5BUnit%5D={4}&Bets%5B0%5D%5BMultiple%5D={5}&Bets%5B0%5D%5BIsCompressed%5D=false&StopIfWin=false&__RequestVerificationToken={6}&SerialNumber={7}&Guid={8}"; str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, pTNumberList, plan.Play, null), this.GetRXWZString1(plan.Type, plan.RXWZ), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), str6 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true); } else { str7 = "(\"success\":true,\"fail\":false,\"code\":\"1\",\"message\":null,\"data\":(\"LotteryId\":{0},\"Issuo\":\"{1}\",\"WinIsStop\":true,\"name\":\"{2}\",\"ChaseNum\":0,\"BetNumList\":[(\"Name\":\"{3}\",\"PlayId\":{4},\"Multiple\":{5},\"Pattern\":{6},\"Position\":\"{10}\",\"Quantity\":\"{7}\",\"Amount\":{8},\"Content\":\"{9}\")],\"ChaseNumList\":[],\"BetPwd\":null),\"extend\":null)"; str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), base.UserID, this.GetPlayString(plan.Play), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, num, plan.AutoTotalMoney(str4, true), this.GetNumberList(plan.Type, pTNumberList, plan.Play, null), this.GetRXWZString1(plan.Type, plan.RXWZ) }).Replace("(", "{").Replace(")", "}"); HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true); } flag = this.CheckReturn(pResponsetext, true); if (flag) { string str8 = CommFunc.GetIndexString(pResponsetext, "\"data\":", ",", 0); AppInfo.Account.BankBalance = Convert.ToDouble(str8); } pHint = this.GetReturn(pResponsetext); } } } } catch { } return(flag); }
public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint) { bool flag = false; try { string betsLine = this.GetBetsLine(plan.Type); string lotteryLine = this.GetLotteryLine(plan.Type, false); Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic; foreach (string str3 in fNNumberDic.Keys) { Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3]; foreach (string str4 in dictionary2.Keys) { if (plan.IsMNState(str4, true)) { flag = true; pHint = "投注成功"; } else { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; double num = plan.AutoTotalMoney(str4, true); if ((plan.UnitType == ConfigurationStatus.SCUnitType.Li) && (num < 0.2)) { pHint = $"'data':'厘模式投注金额需大于等于{0.2}元'"; return(flag); } string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "input" : "digital"; string format = "%7B'type'%3A'{11}'%2C'methodid'%3A{0}%2C'codes'%3A'{1}'%2C'nums'%3A{2}%2C'times'%3A{3}%2C'money'%3A{4}%2C'mode'%3A{5}%2C'point'%3A'{6}'%2C'desc'%3A'{7}+{8}'%2C'position'%3A'{9}'%2C'curtimes'%3A'{10}'%7D"; int num2 = plan.FNNumber(str4); format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num2, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.AutoTotalMoney(str4, true), plan.Unit, "0", this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), this.GetRXWZString(plan.RXWZ), "", str6 }); string str8 = "mainForm=mainForm&lotteryid={0}&flag=save<_sel_times={1}<_sel_modes={2}<_sel_dyprize={3}%7C{4}<_project%5B%5D={5}<_issue_start={6}<_total_nums={7}<_total_money={8}"; string prize = this.GetPrize(plan.Type, "前三直选单式"); if ((AppInfo.Account.Configuration.MaxPrize != "") && (Convert.ToDouble(prize) > Convert.ToDouble(AppInfo.Account.Configuration.MaxPrize))) { pHint = $"'data':'会员投注的赔率不能大于{AppInfo.Account.Configuration.MaxPrize}'"; return(flag); } string str10 = this.GetPrize(plan.Type, plan.Play); str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit, str10, base.Rebate, format, this.GetBetsExpect(plan.CurrentExpect, ""), num2, plan.AutoTotalMoney(str4, true) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, lotteryLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); } } } } catch { } return(flag); }
public void GetWebPrize(ConfigurationStatus.LotteryType pType, string playID) { string indexLine = this.GetIndexLine(); string pUrl = $"{this.GetLine()}/index.php/home/game/played/type/{this.GetBetsLotteryID(pType)}/playedId/{playID}.html"; string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true); string str4 = CommFunc.GetIndexString(pResponsetext, "gameSetPl({\"bonusProp\":\"", "\"", 0); this.PrizeDic[playID] = str4; }
public string GetNewToken(ConfigurationStatus.LotteryType pType) { string betsLotteryID = this.GetBetsLotteryID(pType); string pReferer = $"{this.GetLine()}/game?{betsLotteryID}"; string pUrl = $"{this.GetLine()}/betRecord/getNewestBet.mvc"; string pResponsetext = ""; string pData = ""; HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, pReferer, 0x2710, "UTF-8", true); return(CommFunc.GetIndexString(pResponsetext, "\"token_cd\":\"", "\"", 0)); }
public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo) { try { string accountsMemLine; string indexLine; string str3; string str4; if (this.CheckLotteryIsVR(pType)) { if (base.IsLoginVR) { accountsMemLine = this.GetAccountsMemLine(pType); indexLine = this.GetIndexLine(); str3 = ""; str4 = ""; HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true); string str5 = str3; AppInfo.Account.BankBalance = Convert.ToDouble(str5); } } else { accountsMemLine = this.GetAccountsMemLine(pType); indexLine = this.GetIndexLine(); str3 = ""; str4 = $"type={this.GetBetsLotteryID(pType)}"; HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true); str3 = this.DecryptString(str3); if (str3 != "") { base.Expect = CommFunc.GetIndexString(str3, "\"Issue\":\"", "\"", 0); base.Expect = this.GetAppExpect(pType, base.Expect, false); base.Expect = CommFunc.ConvertExpect(base.Expect, pType); base.BankBalance = CommFunc.GetIndexString(str3, "\"AvaiableAmountStr\":\"", "\"", 0); AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance); } accountsMemLine = $"{this.GetLine()}/lottery/getbetbonusgroup"; indexLine = this.GetIndexLine(); str3 = ""; str4 = ""; HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true); str3 = this.DecryptString(str3); if (str3 != "") { base.Prize = CommFunc.GetIndexString(str3, "\"Max\":", "}", 0); } } } catch { } }
public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo) { try { if (!AppInfo.PTInfo.PTIsBreak) { string accountsMemLine; string indexLine; string str3; string str4; if (this.CheckLotteryIsVR(pType)) { if (base.IsLoginVR) { accountsMemLine = this.GetAccountsMemLine(pType); indexLine = this.GetIndexLine(); str3 = ""; str4 = ""; HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true); if (this.CheckBreakConnect(str3)) { AppInfo.PTInfo.PTIsBreak = true; } else { string str5 = str3; AppInfo.Account.BankBalance = Convert.ToDouble(str5); } } } else { accountsMemLine = this.GetAccountsMemLine(pType); indexLine = this.GetIndexLine(); str3 = ""; str4 = ""; HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true); if (this.CheckBreakConnect(str3)) { AppInfo.PTInfo.PTIsBreak = true; } else { base.BankBalance = CommFunc.GetIndexString(str3, "\"h_u_balance\":\"", "\"", 0); AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance); } } } } catch { } }
public bool LoginWeb() { string pReferer = ""; string loginLine = this.GetLoginLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, loginLine, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true); bool flag = pResponsetext.Contains("飞牛游戏"); base.Token = CommFunc.GetIndexString(pResponsetext, "value=\"", "\"", pResponsetext.IndexOf("_token")); return(flag); }
public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint) { bool flag = false; try { string betsLine = this.GetBetsLine(plan.Type); string pReferer = this.GetBetsLine(plan.Type); Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic; foreach (string str3 in fNNumberDic.Keys) { Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3]; foreach (string str4 in dictionary2.Keys) { if (plan.IsMNState(str4, true)) { flag = true; pHint = "投注成功"; } else { string str8; List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string prize = base.Prize; int num2 = plan.Unit + 4; string str7 = Guid.NewGuid().ToString(); if (this.CheckLotteryIsVR(plan.Type)) { str8 = "LotteryGameID={0}&IssueSerialNumber=&Bets%5B0%5D%5BBetTypeCode%5D={1}&Bets%5B0%5D%5BBetTypeName%5D=&Bets%5B0%5D%5BNumber%5D={2}&Bets%5B0%5D%5BPosition%5D={3}&Bets%5B0%5D%5BUnit%5D={4}&Bets%5B0%5D%5BMultiple%5D={5}&Bets%5B0%5D%5BIsCompressed%5D=false&StopIfWin=false&__RequestVerificationToken={6}&SerialNumber={7}&Guid={8}"; str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, pTNumberList, plan.Play, null), this.GetRXWZString1(plan.Type, plan.RXWZ), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), str7 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); } else { str8 = "LotteryType={0}&IsChase=false&IsStopAfterWin=true&Issue={1}&IsAllIn=false&LstOrder%5B0%5D%5BPlayType%5D={2}&LstOrder%5B0%5D%5BBetPlan%5D={7}&LstOrder%5B0%5D%5BBetCodes%5D={3}&LstOrder%5B0%5D%5BIsZip%5D=false&LstOrder%5B0%5D%5BBetBonusGroup%5D={4}&LstOrder%5B0%5D%5BMoneyUnit%5D={5}&LstOrder%5B0%5D%5BBetMultiple%5D={6}"; str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, pTNumberList, plan.Play, plan.RXWZ), prize, num2, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetRXWZString1(plan.Type, plan.RXWZ) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); pResponsetext = this.DecryptString(pResponsetext); } flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); } } } } catch { } return(flag); }
public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint) { bool flag = false; try { string betsLine = this.GetBetsLine(plan.Type); string pReferer = $"{this.GetLine()}/game/index?id={this.GetBetsLotteryID(plan.Type)}"; Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic; foreach (string str3 in fNNumberDic.Keys) { Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3]; foreach (string str4 in dictionary2.Keys) { if (plan.IsMNState(str4, true)) { flag = true; pHint = "投注成功"; } else { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string str6 = CommFunc.Random(0x3b9aca00, 0x77359400).ToString() + CommFunc.Random(100, 0x3e7); string[] strArray = this.GetPlayMethodID(plan.Type, plan.Play).Split(new char[] { '-' }); string key = strArray[1]; string betsLotteryID = this.GetBetsLotteryID(plan.Type); if (!this.PrizeDic.ContainsKey(key)) { this.GetWebPrize(plan.Type, key); } string str9 = this.PrizeDic[key]; string prize = this.GetPrize(plan.Type, plan.Play); if (Convert.ToDouble(prize) > Convert.ToDouble(str9)) { prize = str9; } string format = "code%5B0%5D%5BfanDian%5D={0}&code%5B0%5D%5BbonusProp%5D={1}&code%5B0%5D%5Bmode%5D={2}&code%5B0%5D%5BbeiShu%5D={3}&code%5B0%5D%5BorderId%5D={4}&code%5B0%5D%5BactionData%5D={5}&code%5B0%5D%5BactionNum%5D={6}&code%5B0%5D%5BweiShu%5D={7}&code%5B0%5D%5BplayedGroup%5D={8}&code%5B0%5D%5BplayedId%5D={9}&code%5B0%5D%5Btype%5D={10}&code%5B0%5D%5BplayedName%5D={11}&code%5B0%5D%5Bflag%5D={12}¶%5Btype%5D={10}¶%5BactionNo%5D={13}"; format = string.Format(format, new object[] { "0", prize, plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), str6, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, "0", strArray[0], strArray[1], betsLotteryID, this.GetPlayString(plan.Play), "1", this.GetBetsExpect(plan.CurrentExpect, "") }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, 0x2710, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); } } } } catch { } return(flag); }
public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "") { string pUrl = $"{this.GetLine()}/gameBet/lottery/lastNumber?code={this.GetPTLotteryName(pType)}&_={DateTime.Now.ToOADate()}"; string indexLine = this.GetIndexLine(); string pResponsetext = ""; HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true); if (pResponsetext != "") { base.Expect = CommFunc.GetIndexString(pResponsetext, "\"number\":\"", "\"", 0); base.Expect = CommFunc.ConvertExpect(base.Expect, pType); } }
public bool GetLoginToken() { string loginLine = this.GetLoginLine(); string pUrl = this.GetLine() + "/DisposableToken"; string pResponsetext = ""; string pData = ""; HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, loginLine, 0x2710, "UTF-8", true); bool flag = pResponsetext.Contains("\"message\":\"请求操作成功!\""); base.Token = CommFunc.GetIndexString(pResponsetext, "\"token\":\"", "\"", 0); return(flag); }