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); List <string> pList = new List <string> { "10" + this.GetBetsLotteryID(plan.Type).PadLeft(2, '0') + this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num.ToString() }; string str = CommFunc.Join(pList, "+"); string format = "Model=Game&Action=AddBuy&Id={0}&Issue={1}&BuyCode={2}&BuyChase=&IsChaseCode=0&Multiple={3}&Rebate={4}&TheTotalAmount={5}"; format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), HttpUtility.UrlEncode(str), plan.AutoMoney(str4, true), base.Rebate, plan.AutoTotalMoney(str4, true) }); HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, 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; } 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 = plan.FNNumber(str4); List <string> pList = new List <string>(); string pTLotteryName = this.GetPTLotteryName(plan.Type); if (plan.Type == ConfigurationStatus.LotteryType.NYFFC) { pTLotteryName = "ZIZHUYFC"; } else if (plan.Type == ConfigurationStatus.LotteryType.NY3FC) { pTLotteryName = "ZIZHUSFC"; } else if (plan.Type == ConfigurationStatus.LotteryType.NY5FC) { pTLotteryName = "ZIZHUWFC"; } pList.Add(pTLotteryName); pList.Add(this.GetPlayMethodID(plan.Type, plan.Play)); pList.Add("2" + plan.UnitZWString); pList.Add(num.ToString()); pList.Add(plan.AutoMoney(str4, true).ToString()); pList.Add(base.Prize); pList.Add("undefined"); pList.Add(Convert.ToInt32(plan.AutoTimes(str4, true)).ToString()); pList.Add(this.GetBetsExpect(plan.CurrentExpect, "")); pList.Add(DateAndTime.Now.ToOADate().ToString()); pList.Add(this.GetNumberList1(pTNumberList, plan.Play, null)); string rXWZString = ""; if (CommFunc.CheckPlayIsRXDS(plan.Play)) { rXWZString = this.GetRXWZString(plan.RXWZ); } pList.Add(rXWZString + "^"); string str8 = CommFunc.Join(pList, "|"); string format = "selArr={0}&istask=no&perstop=0&moneys=0&lists=&gamekey={1}"; format = string.Format(format, str8, pTLotteryName); 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); }