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 = Convert.ToInt32(plan.AutoTimes(str4, true)); int num2 = plan.FNNumber(str4); string prize = base.Prize; string str7 = ((Convert.ToDouble(this.GetPrize(plan.Type, plan.Play)) / Convert.ToDouble(Math.Pow(10.0, (double)(plan.Unit - 1)))) * num).ToString(); string[] strArray = this.GetPlayString(plan.Play).Split(new char[] { '-' }); string format = "Bet=%5B%7B%22Player%22%3A%22{0}%22%2C%22Group%22%3A%22{1}%22%2C%22Name%22%3A%22{2}%22%2C%22ID%22%3A%22{3}%22%2C%22Ball%22%3A%22{4}%22%2C%22Bet%22%3A{5}%2C%22Money%22%3A{6}%2C%22Times%22%3A{7}%2C%22Mode%22%3A%22{8}%22%2C%22Reward%22%3A{9}%2C%22Rebate%22%3A{10}%2C%22BetReturn%22%3A%22{11}%25%22%7D%5D&Chase="; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), HttpUtility.UrlEncode(strArray[0]), HttpUtility.UrlEncode(strArray[1]), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num2, plan.AutoTotalMoney(str4, true), num, plan.UnitZWString, str7, prize, "0.00" }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true); 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 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 = Convert.ToInt32(plan.AutoTimes(str4, true)); int num2 = plan.FNNumber(str4); string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "true" : "false"; string format = "gameId={0}&periodId={1}&isSingle={9}&canAdvance=false&orderList=%5B%7B%22i%22%3A{2}%2C%22c%22%3A%22{3}%22%2C%22n%22%3A{4}%2C%22t%22%3A%22{5}%22%2C%22k%22%3A{6}%2C%22m%22%3A{7}%2C%22a%22%3A{8}%7D%5D"; format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), base.ExpectID, this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num2, num, "0", plan.Unit, plan.AutoTotalMoney(str4, true), str6 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); Thread.Sleep(0xbb8); } } } } 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 = ""; int num = Convert.ToInt32(plan.AutoTimes(str4, true)); int num2 = plan.FNNumber(str4); string str6 = (Convert.ToDouble(this.GetPrize(plan.Type, plan.Play)) / Math.Pow(10.0, (double)(plan.Unit - 1))).ToString(); string format = "(\"list\":[(\"lotteryCode\":\"{0}\",\"lotteryBetCode\":\"{1}\",\"typeName\":\"{2}\",\"betContent\":\"{3}\",\"moneyType\":\"{4}\",\"betModel\":\"{5}\",\"betCount\":{6},\"betMultiple\":\"{7}\",\"betRebates\":{8},\"betMoney\":\"{9}\",\"betDigit\":\"{10}\",\"desc\":\"玩法:{2} 号码:{3} 模式:{4}, 奖金:{14},返点:{8}% 包含:{6}注,{7}倍, 共计{9}元\")],\"betPeriod\":\"{11}\",\"regSource\":{12},\"token\":\"{13}\")"; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetPlayString(plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), plan.UnitZWString, plan.Unit, num2, num, "0", plan.AutoTotalMoney(str4, true), this.GetRXWZString1(plan.RXWZ, plan.Play), this.GetBetsExpect(plan.CurrentExpect, ""), "1", base.Token, str6 }).Replace("(", "{").Replace(")", "}"); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); int num2 = Convert.ToInt32(plan.AutoTimes(str4, true)); string str6 = ((Convert.ToDouble(base.Prize) / Convert.ToDouble(Math.Pow(10.0, (double)(plan.Unit - 1)))) * num2).ToString(); string format = "[(\"id\":\"{0}\",\"number\":\"{1}\",\"mode\":\"{2}\",\"times\":{3},\"rebate\":{4},\"reward\":{5},\"bet\":{6},\"money\":{7})]"; format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), plan.UnitZWString, num2, "0", str6, num, plan.AutoTotalMoney(str4, true) }).Replace("(", "{").Replace(")", "}"); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); 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 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); int num2 = Convert.ToInt32(plan.AutoTimes(str4, true)); string format = "lotteryid={0}&trace=0&tracewinstop=0&traceexceptstop=0&issuenos%5B{1}%5D=1&projects%5B0%5D%5Bmethodid%5D={2}&projects%5B0%5D%5Bcodes%5D={3}&projects%5B0%5D%5Bnum%5D={4}&projects%5B0%5D%5Btimes%5D={5}&projects%5B0%5D%5Bmode%5D={6}&projects%5B0%5D%5Bpoint%5D={10}&{9}&totalnum={7}&totalCost={8}"; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, num2, plan.Unit - 1, num * num2, plan.AutoTotalMoney(str4, true), this.GetRXWZString(plan.RXWZ, 0, plan.Play), base.Rebate }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime3, "UTF-8", true); 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 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); int num2 = 2; string format = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&balls%5B0%5D%5BjsId%5D={1}&balls%5B0%5D%5BwayId%5D={2}&balls%5B0%5D%5Bball%5D={3}&balls%5B0%5D%5BviewBalls%5D=&balls%5B0%5D%5Bnum%5D={4}&balls%5B0%5D%5Btype%5D={5}&balls%5B0%5D%5BonePrice%5D={6}&balls%5B0%5D%5Bprize_group%5D={7}&balls%5B0%5D%5Bmoneyunit%5D={8}&balls%5B0%5D%5Bmultiple%5D={9}&orders%5B{10}%5D={11}&amount={12}&_token={13}&is_encoded=0&client_key={14}"; string prize = base.Prize; prize = this.GetMaxPrize(prize, 1960.0); string str8 = HttpUtility.UrlEncode("zjhtyb2016011217011000xte&ewr~yko!d"); format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), "1", this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, this.GetPlayString(plan.Play), num2, prize, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetBetsExpect(plan.CurrentExpect, ""), "1", plan.AutoTotalMoney(str4, true), base.Token, str8 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string format = "\"lotteryId\":{0},\"codes\":\"{1}\",\"num\":{2},\"ruleId\":{3},\"ruleCode\":\"{4}\",\"multiple\":{5},\"model\":\"1{6}\",\"code\":{7}"; string prize = base.Prize; string[] strArray = Strings.Split(this.GetPlayMethodID(plan.Type, plan.Play), "-", -1, CompareMethod.Binary); format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, strArray[0], strArray[1], Convert.ToInt32(plan.AutoTimes(str4, true)), plan.UnitString, prize, 1 }); format = "blist=" + HttpUtility.UrlEncode("[{" + format + "}]"); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime1, "UTF-8", true); 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 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 indexLine = this.GetIndexLine(); 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); int num2 = Convert.ToInt32(Math.Pow(10.0, (double)(plan.Unit - 1))); string format = "'wanFaID':'{0}','touZhuHaoMa':'{1}','digit':'{2}','touZhuBeiShu':'{3}','danZhuJinEDanWei':'{4}','yongHuSuoTiaoFanDian':'{5}','zhuShu':'{6}','bouse':'{7}'"; format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), this.GetRXWZString1(plan, pTNumberList), Convert.ToInt32(plan.AutoTimes(str4, true)), num2, 0, num, base.Rebate }); format = "{" + format + "}"; string str7 = "'token':'{0}','issueNo':'{1}','gameId':'{2}','tingZhiZhuiHao':'true','zhuiHaoQiHao':[],'touZhuHaoMa':[{3}]"; str7 = string.Format(str7, new object[] { base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), this.GetBetsLotteryID(plan.Type), format }); str7 = "json={" + str7 + "}"; HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, indexLine, base.BetsTime3, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); if (pResponsetext.Contains("请勿重复提交")) { base.Token = ""; while (base.Token == "") { Thread.Sleep(0x3e8); } } else { string str8 = CommFunc.GetIndexString(pResponsetext, "\"token_tz\":\"", "\"", 0); if (!((str8 == "") || str8.Contains("=="))) { base.Token = str8; } } Thread.Sleep(0xbb8); } } } } 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.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 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.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, pReferer, AppInfo.PTInfo.BetsTime2, "UTF-8", true); } else { List <List <string> > list2 = new List <List <string> >(); if (CommFunc.CheckPlayIsLH(plan.Play)) { foreach (string str8 in pTNumberList) { List <string> item = new List <string> { str8 }; list2.Add(item); } } else { list2.Add(pTNumberList); } List <string> pList = new List <string>(); foreach (List <string> list5 in list2) { string format = "%7B%22lottery%22%3A%22{0}%22%2C%22issue%22%3A%22%22%2C%22method%22%3A%22{1}%22%2C%22content%22%3A%22{2}%22%2C%22model%22%3A%22{3}%22%2C%22multiple%22%3A{4}%2C%22code%22%3A{5}%2C%22issue%22%3A%22{6}%22%2C%22compress%22%3Afalse%7D"; string prize = base.Prize; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, list5, plan.Play, plan.RXWZ), plan.UnitString, Convert.ToInt32(plan.AutoTimes(str4, true)), prize, this.GetBetsExpect(plan.CurrentExpect, "") }); pList.Add(format); } str7 = $"text=%5B{CommFunc.Join(pList, "%2C")}%5D"; HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); } 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 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]); 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.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 = "gid={0}&issue={1}&rebate={2}&codes%5B0%5D%5Bpid%5D={3}&codes%5B0%5D%5Bcode%5D={4}&codes%5B0%5D%5Bmultiple%5D={5}&codes%5B0%5D%5Bbet_num%5D={6}&codes%5B0%5D%5Bamount_mode%5D={7}&appendcodestop={8}"; str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), "0", this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, pTNumberList, plan.Play, plan.RXWZ), Convert.ToInt32(plan.AutoTimes(str4, true)), num, plan.Money, 1 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, lotteryLine, base.BetsTime2, "UTF-8", true); } 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.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 { 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, plan.Play); str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit, prize, base.Rebate, format, this.GetBetsExpect(plan.CurrentExpect, ""), num2, plan.AutoTotalMoney(str4, true) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "8" : "0"; int num = plan.FNNumber(str4); string prize = base.Prize; string format = "betMessage=%7B'UserBetInfo'%3A%7B'IssueNumber'%3A'{0}'%2C'Bet'%3A%5B%7B'BetMode'%3A'{1}'%2C'BetCount'%3A{2}%2C'BetMultiple'%3A'{3}'%2C'BetContent'%3A'{4}'%2C'IssueNumber'%3A'{0}'%2C'BetMoney'%3A{5}%2C'PlayCode'%3A'{6}'%2C'BetRebate'%3A{7}%7D%5D%2C'LotteryCode'%3A{8}%7D%7D"; format = string.Format(format, new object[] { this.GetBetsExpect(plan.CurrentExpect, ""), str6, num, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), plan.AutoTotalMoney(str4, true), this.GetPlayMethodID(plan.Type, plan.Play), prize, this.GetBetsLotteryID(plan.Type) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); 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 prize = base.Prize; string format = "lottery={0}&no={1}&flevel_modes={2}&total_price={3}&total_zhushu={4}&flevel_fd=&data[0][multiple]={5}&data[0][num]={6}&data[0][pattern]={7}&data[0][play]={8}&data[0][price]={3}&data[0][rxw]={11}&data[0][zhushu]={4}&data[0][peilv]=&main_wf=&wf=&token={9}&user_id={10}&sign="; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), prize, plan.AutoTotalMoney(str4, true), num, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetNumberList1(pTNumberList, plan.Play, null), plan.Money, this.GetPlayMethodID(plan.Type, plan.Play), base.Token, base.VerifyCodeToken, this.GetRXWZString(plan.RXWZ) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime3, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); double num2 = Convert.ToDouble(base.Rebate) * 20.0; string rXWZString = this.GetRXWZString(plan.RXWZ, plan.Play); string str7 = CommFunc.Random(0x2710, 0x1869f).ToString(); string format = "(\"amount\":{0},\"gameType\":\"{1}\",\"isTrace\":0,\"traceWinStop\":0,\"balls\":[(\"selectPosition\":\"{2}\",\"selectMedia\":\"{3}\",\"id\":\"{4}\",\"ball\":\"{5}\",\"type\":\"{6}\",\"moneyunit\":\"{7}\",\"multiple\":\"{8}\",\"num\":\"{9}\",\"graduationCount\":\"{10}\")],\"orders\":[(\"number\":\"{11}\",\"issueCode\":\"{11}\",\"multiple\":1)])"; format = string.Format(format, new object[] { plan.AutoTotalMoney(str4, true), this.GetBetsLotteryID(plan.Type), rXWZString, rXWZString, str7, this.GetNumberList1(pTNumberList, plan.Play, null), this.GetPlayMethodID(plan.Type, plan.Play), plan.Money / 2.0, Convert.ToInt32(plan.AutoTimes(str4, true)), num, num2, this.GetBetsExpect(plan.CurrentExpect, "") }).Replace("(", "{").Replace(")", "}"); HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime4, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string format = "text=%5B%7B%22lottery%22%3A%22{0}%22%2C%22issue%22%3A%22%22%2C%22method%22%3A%22{1}%22%2C%22content%22%3A%22{2}%22%2C%22model%22%3A%22{3}%22%2C%22multiple%22%3A{4}%2C%22code%22%3A{5}%2C%22issue%22%3A%22{6}%22%2C%22compress%22%3Afalse%7D%5D"; string prize = base.Prize; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), plan.UnitString, Convert.ToInt32(plan.AutoTimes(str4, true)), prize, this.GetBetsExpect(plan.CurrentExpect, "") }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); 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 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); string format = "(\"game_id\":\"{0}\",\"game_type_id\":{1},\"game_cycle_id\":\"{2}\",\"bet_info\":\"{3}\",\"bet_mode\":\"{4}\",\"bet_multiple\":\"{5}\",\"bet_percent_type\":\"{6}\")"; format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), base.ExpectID, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), plan.Unit - 1, Convert.ToInt32(plan.AutoTimes(str4, true)), "0" }); format = this.GetEncode(format, true); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true); 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 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 = ""; string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "input" : "digital"; string format = "%7B'type'%3A'{9}'%2C'methodid'%3A{0}%2C'codes'%3A'{1}'%2C'nums'%3A{2}%2C'guaji'%3A1%2C'omodel'%3A0%2C'times'%3A{3}%2C'money'%3A{4}%2C'mode'%3A{5}%2C'desc'%3A'{6}+{7}'%2C'poschoose'%3A'{8}'%7D"; int num = plan.FNNumber(str4); string prize = this.GetPrize(plan.Type, plan.Play); format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.AutoTotalMoney(str4, true), plan.Unit, this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), this.GetRXWZString(plan.RXWZ), str6 }); string str9 = "lotteryid={0}&curmid={1}&poschoose=&flag=save&play_source=&pmodelradio=0&pmodel=0<_project_modes={2}<_price_h=<_project%5B%5D={3}<_issue_start={4}<_total_nums={5}<_total_money={6}"; str9 = string.Format(str9, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsLotteryCurmid(plan.Type), plan.Unit, format, this.GetBetsExpect(plan.CurrentExpect, ""), num, plan.AutoTotalMoney(str4, true) }); int pTime = (plan.Type == ConfigurationStatus.LotteryType.UCFFC) ? 0x4e20 : 0xea60; HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str9, lotteryLine, pTime, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string prize = this.GetPrize(plan.Type, plan.Play); string format = "content=%7B%22command_id%22%3A{0}%2C%22lottery_id%22%3A%22{1}%22%2C%22issue%22%3A%22{2}%22%2C%22count%22%3A{3}%2C%22bet_info%22%3A%5B%7B%22method_id%22%3A%22{4}%22%2C%22number%22%3A%22{5}%22%2C%22rebate_count%22%3A{6}%2C%22multiple%22%3A%22{7}%22%2C%22mode%22%3A%22{8}%22%2C%22bet_money%22%3A%22{9}%22%2C%22calc_type%22%3A%22{10}%22%7D%5D%7D"; format = string.Format(format, new object[] { "521", this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), 1, this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), base.Rebate, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit - 1, plan.AutoTotalMoney(str4, true), 0 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime2, "UTF-8", true); 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 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); string prize = this.GetPrize(plan.Type, plan.Play); List <string> pList = new List <string> { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num.ToString(), "1", plan.AutoTotalMoney(str4, true).ToString() }; pList.Add((plan.Unit - 1).ToString()); pList.Add($"{prize}|{"0"}|{"2"}"); pList.Add(Convert.ToInt32(plan.AutoTimes(str4, true)).ToString()); string str7 = CommFunc.Join(pList, ":"); string rXWZString = ""; if (CommFunc.CheckPlayIsRXDS(plan.Play)) { rXWZString = this.GetRXWZString(plan.RXWZ); } else if (CommFunc.CheckPlayIsRXFS(plan.Play)) { List <string> list3 = new List <string>(); int num2 = 0; foreach (string str9 in pTNumberList) { if (str9 != "*") { string item = AppInfo.IndexDic[num2] + "位"; list3.Add(item); } num2++; } rXWZString = CommFunc.Join(list3, "、"); } string format = "data={0}:{7}&lottery_number_id={1}&is_add=0&lottery_id={2}&amount={3}&com=n*{4}*{5}*{6}"; format = string.Format(format, new object[] { str7, base.ExpectID, this.GetBetsLotteryID(plan.Type), plan.AutoTotalMoney(str4, true), DateTime.Now.ToOADate(), base.ExpectID, base.Token, rXWZString }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, 0x2710, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "input" : "digital"; int num = plan.FNNumber(str4); string prize = this.GetPrize(plan.Type, plan.Play); string format = "arguments=%7B%22id%22%3A%22{0}%22%2C%22shortName%22%3A%22{1}%22%2C%22total_nums%22%3A{2}%2C%22total_money%22%3A{3}%2C%22items%22%3A%5B%7B%22rulecode%22%3A%22{4}%22%2C%22type%22%3A%22{5}%22%2C%22codes%22%3A%22{6}%22{11}%2C%22nums%22%3A{2}%2C%22times%22%3A{7}%2C%22money%22%3A{3}%2C%22mode%22%3A{8}%2C%22point%22%3A{9}%2C%22curtimes%22%3A{10}%7D%5D%2C%22trace_if%22%3A%22no%22%7D"; format = string.Format(format, new object[] { this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPTLotteryName(plan.Type), num, plan.AutoTotalMoney(str4, true), this.GetPlayMethodID(plan.Type, plan.Play), str6, this.GetNumberList1(pTNumberList, plan.Play, null), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, "0", DateTime.Now.ToOADate(), this.GetRXWZString1(plan) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); 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 indexLine = this.GetIndexLine(); 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 prize = this.GetPrize(plan.Type, plan.Play); string str7 = CommFunc.Random(0x3b9aca00, 0x77359400).ToString() + CommFunc.Random(100, 0x3e7); string str8 = CommFunc.Random(0x3e8, 0x270f).ToString(); string format = "(\"random\":\"{0}\",\"gameType\":\"{1}\",\"isTrace\":0,\"traceWinStop\":0,\"traceStopValue\":-1,\"nowstopTime\":\"\",\"showhand\":0,\"balls\":[(\"id\":{2},\"sdz\":0,\"ball\":\"{3}\",\"type\":\"{4}\",\"moneyunit\":{5},\"oneprice\":{6},\"multiple\":{7},\"num\":{8},\"playBonus\":\"{9}\",\"playRebate\":\"{10}\",\"restrictions\":{11})],\"ordersNumber\":\"\\u7B2C{12}\\u671F\",\"orders\":[(\"number\":\"{12}\",\"lotterytime\":\"\",\"issueCode\":\"{12}\",\"multiple\":1)],\"amount\":\"{13}\",\"onlyAmount\":\"{13}\",\"_quickbet\":0)"; format = CommFunc.LZMA7zipEncode(string.Format(format, new object[] { str7, this.GetPTLotteryName(plan.Type), str8, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), this.GetPlayMethodID(plan.Type, plan.Play), plan.Money, "1", Convert.ToInt32(plan.AutoTimes(str4, true)), num, plan.Mode, "0", base.Rebate, this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true) }).Replace("(", "{").Replace(")", "}")); HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, indexLine, base.BetsTime2, "UTF-8", true); 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 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 = ""; string play = plan.Play; ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(play); int num = plan.FNNumber(str4); int num2 = 2; string prize = base.Prize; string str8 = ""; Dictionary <string, string> dictionary3 = new Dictionary <string, string>(); if (CommFunc.CheckPlayIsRX(play)) { string current; string str10; string str11; int num3; int count; List <string> list5; List <string> pList = new List <string>(); Dictionary <string, string> dictionary4 = new Dictionary <string, string>(); List <string> list3 = CommFunc.SplitString(this.GetPlayMethodID(plan.Type, plan.Play), ";", -1); using (List <string> .Enumerator enumerator3 = list3.GetEnumerator()) { while (enumerator3.MoveNext()) { current = enumerator3.Current; str10 = CommFunc.Join(current.Split(new char[] { '-' })[0], ",", -1); str11 = current.Split(new char[] { '-' })[1]; dictionary4[str10] = str11; } } if (CommFunc.CheckPlayIsRXFS(play)) { List <string> itemList = new List <string>(); num3 = 0; while (num3 < pTNumberList.Count) { string item = $"{num3}-{pTNumberList[num3]}"; itemList.Add(item); num3++; } count = playInfo.IndexList.Count; list5 = CommFunc.GetCombinations(itemList, count, "|"); num3 = 0; while (num3 < list5.Count) { string pStr = list5[num3]; if (!pStr.Contains("*")) { List <string> list6 = new List <string>(); List <string> list7 = new List <string>(); List <string> list8 = CommFunc.SplitString(pStr, "|", -1); for (int i = 0; i < list8.Count; i++) { string str14 = list8[i]; list6.Add(str14.Split(new char[] { '-' })[0]); list7.Add(str14.Split(new char[] { '-' })[1]); } str10 = CommFunc.Join(list6, ","); str11 = CommFunc.Join(list7, "|"); dictionary3[str10] = str11; } num3++; } } else if (CommFunc.CheckPlayIsRXDS(play)) { List <string> list9 = new List <string>(); num3 = 0; while (num3 < plan.RXWZ.Count) { string str15 = plan.RXWZ[num3].ToString(); list9.Add(str15); num3++; } count = playInfo.IndexList.Count; list5 = CommFunc.GetCombinations(list9, count, ","); for (num3 = 0; num3 < list5.Count; num3++) { str10 = list5[num3]; str11 = this.GetNumberList1(pTNumberList, play, null); if (CommFunc.CheckPlayIsZuX(play) && play.Contains("复式")) { str11 = CommFunc.Join(str11, "|", -1); } dictionary3[str10] = str11; } } int num6 = 1; foreach (string str100 in dictionary3.Keys) { current = dictionary4[str100]; str11 = dictionary3[str100]; List <string> list10 = CommFunc.SplitString(str100, ",", -1); List <string> list11 = new List <string>(); foreach (string str16 in list10) { list11.Add((Convert.ToInt32(str16) + 1).ToString()); } string str17 = CommFunc.Join(list11); int num8 = num; if (CommFunc.CheckPlayIsRXFS(play)) { count = playInfo.IndexList.Count; string playName = ""; switch (count) { case 2: playName = "前二直选复式"; break; case 3: playName = "前三直选复式"; break; case 4: playName = "前四直选复式"; break; } num8 = CommFunc.GetBetsCodeCount(CommFunc.SplitString(str11, "|", -1), playName, null); } else if (CommFunc.CheckPlayIsRXDS(play)) { num8 = CommFunc.GetBetsCodeCount(pTNumberList, play, null); } string str19 = "%7B%22ball%22%3A%22{0}%22%2C%22viewBalls%22%3A%22%22%2C%22num%22%3A{1}%2C%22type%22%3A%22{2}%22%2C%22onePrice%22%3A%22{3}%22%2C%22moneyunit%22%3A{4}%2C%22multiple%22%3A{5}%2C%22prizeGroup%22%3A%22{6}%22%2C%22index%22%3A%22{7}%22%2C%22jsId%22%3A{8}%2C%22wayId%22%3A%22{9}%22%2C%22position%22%3A%22{10}%22%7D"; str19 = string.Format(str19, new object[] { HttpUtility.UrlEncode(str11), num8, this.GetPlayString(play), num2, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), prize, HttpUtility.UrlEncode(str100), num6, current, str17 }); pList.Add(str19); num6++; } str8 = CommFunc.Join(pList, "%2C"); str8 = $"ballstr=%5B{str8}%5D"; } else { str8 = "ballstr=%5B%7B%22jsId%22%3A{0}%2C%22wayId%22%3A{1}%2C%22ball%22%3A%22{2}%22%2C%22viewBalls%22%3A%22%22%2C%22num%22%3A{3}%2C%22type%22%3A%22{4}%22%2C%22onePrice%22%3A%22{5}%22%2C%22moneyunit%22%3A%22{6}%22%2C%22multiple%22%3A{7}%2C%22prizeGroup%22%3A%22{8}%22%7D%5D"; str8 = string.Format(str8, new object[] { "1", this.GetPlayMethodID(plan.Type, plan.Play), HttpUtility.UrlEncode(this.GetNumberList1(pTNumberList, plan.Play, null)), num, this.GetPlayString(plan.Play), num2, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), prize }); } string format = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&orders%5B{1}%5D=1&amount={2}&{3}&orderstr=%7B%22{1}%22%3A{4}%7D"; format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true), str8, "1" }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime3, "UTF-8", true); 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 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 = ""; string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "input" : "digital"; string format = "%22%3A%5B%7B%22type%22%3A%22{8}%22%2C%22methodid%22%3A{0}%2C%22mode%22%3A{1}%2C%22times%22%3A{2}%2C%22point%22%3A%22{3}%22%2C%22codes%22%3A%22{4}%22%2C%22desc%22%3A%22{5}+{6}%22%2C%22position%22%3A%22{7}%22%7D%5D%7D"; format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), plan.Unit, Convert.ToInt32(plan.AutoTimes(str4, true)), "0", this.GetNumberList1(pTNumberList, plan.Play, null), this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), this.GetRXWZString(plan.RXWZ), str6 }); string str8 = "jsonstr=%7B%22lotteryId%22%3A%22{0}%22%2C%22issuo%22%3A%22{1}%22%2C%22memberid%22%3A%22{4}%22%2C%22lt_trace_if%22%3Afalse%2C%22lt_trace_stop%22%3Afalse%2C%22lt_trace_issues%22%3A%5B%5D%2C%22lt_project{2}&__RequestVerificationToken={3}"; str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), format, "undefined", base.PTUserID }); 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 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 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); string prize = this.GetPrize(plan.Type, plan.Play); string format = "(\"IsChase\":false,\"Issue\":\"{0}\",\"IsAllIn\":false,\"LstOrder\":[(\"PlayType\":\"{1}\",\"Codes\":\"{2}\",\"IsZip\":\"false\",\"Model\":\"{3}\",\"MoneyUnit\":\"{4}\",\"Multiple\":\"{5}\")],\"LotteryType\":{6})"; format = string.Format(format, new object[] { this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), "0.0", plan.Unit + 3, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetBetsLotteryID(plan.Type) }).Replace("(", "{").Replace(")", "}"); HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true); 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 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 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 = Convert.ToInt32(plan.AutoTimes(str4, true)); int num2 = plan.FNNumber(str4); double num3 = plan.AutoTotalMoney(str4, true); string str6 = CommFunc.CheckPlayIsDS(plan.Play) ? "true" : "false"; string play = plan.Play; List <string> list2 = new List <string>(); Dictionary <string, List <string> > dictionary3 = new Dictionary <string, List <string> >(); int count = CommFunc.GetPlayInfo(play).IndexList.Count; if (CommFunc.CheckPlayIsRX(play)) { int num5; if (CommFunc.CheckPlayIsRXDS(play)) { List <string> itemList = new List <string>(); num5 = 0; while (num5 < plan.RXWZ.Count) { string item = plan.RXWZ[num5].ToString(); itemList.Add(item); num5++; } list2 = CommFunc.GetCombinations(itemList, count, ""); num2 = CommFunc.GetBetsCodeCount(pTNumberList, play, null); num3 = (num2 * num) * plan.Money; } else if (CommFunc.CheckPlayIsRXFS(play)) { List <string> list4 = new List <string>(); num5 = 0; while (num5 < pTNumberList.Count) { string str9 = $"{num5}-{pTNumberList[num5]}"; list4.Add(str9); num5++; } List <string> list5 = CommFunc.GetCombinations(list4, count, "|"); for (num5 = 0; num5 < list5.Count; num5++) { string pStr = list5[num5]; if (!pStr.Contains("*")) { List <string> list6 = new List <string>(); List <string> list7 = new List <string>(); List <string> list8 = CommFunc.SplitString(pStr, "|", -1); for (int j = 0; j < list8.Count; j++) { string str11 = list8[j]; list6.Add(str11.Split(new char[] { '-' })[0]); list7.Add(str11.Split(new char[] { '-' })[1]); } string str12 = CommFunc.Join(list6); dictionary3[str12] = list7; list2.Add(str12); } } } } else { list2.Add("0"); } List <string> pList = new List <string>(); for (int i = 0; i < list2.Count; i++) { string str13 = list2[i]; if (CommFunc.CheckPlayIsRXFS(play)) { string playName = ""; switch (count) { case 2: playName = "前二直选复式"; break; case 3: playName = "前三直选复式"; break; case 4: playName = "前四直选复式"; break; } List <string> pCodeList = dictionary3[str13]; num2 = CommFunc.GetBetsCodeCount(pCodeList, playName, null); pTNumberList = CommFunc.CopyList(pCodeList); num3 = (num2 * num) * plan.Money; } List <int> pIndexList = CommFunc.ConvertSameListInt(str13); string str15 = "%7B%22i%22%3A{0}%2C%22c%22%3A%22{1}%22%2C%22n%22%3A{2}%2C%22t%22%3A%22{3}%22%2C%22k%22%3A{4}%2C%22m%22%3A{5}%2C%22a%22%3A{6}%7D"; str15 = string.Format(str15, new object[] { this.GetPlayMethodID1(plan.Type, play, pIndexList), this.GetNumberList1(pTNumberList, plan.Play, null), num2, num, "0", plan.Unit, num3 }); pList.Add(str15); } string str16 = CommFunc.Join(pList, "%2C"); string format = "gameId={0}&periodId={1}&isSingle={2}&canAdvance=false&orderList=%5B{3}%5D"; format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), base.ExpectID, str6, str16 }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); Thread.Sleep(0xbb8); } } } } 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 = ""; string format = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&orders%5B{1}%5D=1&amount={2}&ballstr=%5B%7B%22jsId%22%3A{3}%2C%22wayId%22%3A{4}%2C%22ball%22%3A%22{5}%22%2C%22viewBalls%22%3A%22%22%2C%22num%22%3A{6}%2C%22type%22%3A%22{7}%22%2C%22onePrice%22%3A%22{8}%22%2C%22moneyunit%22%3A%22{9}%22%2C%22multiple%22%3A{10}%2C%22prizeGroup%22%3A%22{11}%22%7D%5D&orderstr=%7B%22{1}%22%3A{12}%7D"; int num = plan.FNNumber(str4); int num2 = 2; string prize = base.Prize; format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true), "1", this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, this.GetPlayString(plan.Play), num2, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), prize, "1" }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime3, "UTF-8", true); 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.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 { List <string> pTNumberList = plan.GetPTNumberList(dictionary2[str4]); string pResponsetext = ""; int num = plan.FNNumber(str4); string prize = base.Prize; string format = "[(\"lotteryID\":\"{0}\",\"gameID\":\"{1}\",\"betNum\":\"{2}\",\"betCount\":\"{3}\",\"betAmount\":\"{4}\",\"mode\":\"{5}\",\"multiCount\":\"{6}\",\"unit\":\"{7}\",\"issueNO\":\"{8}\",\"bonusAmount\":\"{9}\",\"subID\":\"{10}\")]"; format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, plan.AutoTotalMoney(str4, true), prize, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, this.GetBetsExpect(plan.CurrentExpect, ""), plan.Mode, this.GetRXWZString1(plan.RXWZ, plan.Play) }).Replace("(", "{").Replace(")", "}"); HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true); flag = this.CheckReturn(pResponsetext, true); pHint = this.GetReturn(pResponsetext); } } } } catch { } return(flag); }