private void ShrinkMain() { this.ShinkList.Clear(); this.Shrink = this.GetShrinkData(); if (this.Shrink.DM.CodeList.Count == 0) { CommFunc.PublicMessageAll("至少要选择一个胆码!", true, MessageBoxIcon.Asterisk, ""); } else { if (AppInfo.Current != null) { this.NumberList = CommFunc.GetCombinaList(ConfigurationStatus.CombinaType.ZX, 2, -1, -1); } foreach (string str in this.NumberList) { List <int> pCodeList = CommFunc.ConvertSameListInt(str); if (this.CheckShrinkCode(pCodeList)) { this.ShinkList.Add(str); } } this.SetNumberHint(); this.Txt_Number.Text = CommFunc.Join(this.ShinkList, " "); } }
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 string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null) { string str = ""; ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName); if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC) { List <string> list5; int num3; string str4; if (CommFunc.CheckPlayIsFS(playName)) { return(CommFunc.Join(pNumberList, "_").Replace("*", "#")); } if (playName.Contains("定位胆")) { return(CommFunc.Join(pNumberList).Replace("*", "")); } if (CommFunc.CheckPlayIsZuX(playName)) { if (playName.Contains("复式")) { str = CommFunc.Join(pNumberList); } if (CommFunc.CheckPlayIsRX(playName)) { str = this.GetRXWZString(pRXWZ) + str; } return(str); } if (CommFunc.CheckPlayIsRX(playName)) { int count = playInfo.IndexList.Count; List <string> list2 = CommFunc.GetCombinations(CommFunc.ConvertIntToStrList(pRXWZ), count, ""); List <string> pList = new List <string>(); for (int i = 0; i < list2.Count; i++) { List <int> list4 = CommFunc.ConvertSameListInt(list2[i]); list5 = new List <string>(); num3 = 0; while (num3 < pNumberList.Count) { string str2 = pNumberList[num3]; List <string> list6 = new List <string>(); int num4 = 0; for (int j = 0; j < 5; j++) { string str3 = "#"; if (list4.Contains(j)) { str3 = str2[num4++].ToString(); } list6.Add(str3); } str4 = CommFunc.Join(list6, "_"); list5.Add(str4); num3++; } string item = CommFunc.Join(list5, ","); pList.Add(item); } return(CommFunc.Join(pList, ",")); } list5 = new List <string>(); for (num3 = 0; num3 < pNumberList.Count; num3++) { str4 = pNumberList[num3]; str4 = CommFunc.Join(str4, "_", -1); list5.Add(str4); } return(CommFunc.Join(list5, ",")); } if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5) { if (CommFunc.CheckPlayIsDS(playName)) { return(CommFunc.Join(pNumberList, ",").Replace(" ", "_")); } if (CommFunc.CheckPlayIsFS(playName)) { str = CommFunc.Join(pNumberList, "-"); } return(str); } if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10) { return(str); } if (CommFunc.CheckPlayIsDS(playName)) { return(CommFunc.Join(pNumberList, ",").Replace(" ", "_")); } if (CommFunc.CheckPlayIsFS(playName)) { return(CommFunc.Join(pNumberList, "_").Replace(" ", "-").Replace("*", "")); } return(CommFunc.Join(pNumberList, "-").Replace("*", "")); }