예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
파일: HBS.cs 프로젝트: francis12/guaji
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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&lt_sel_times={1}&lt_sel_modes={2}&lt_sel_dyprize={3}%7C{4}&lt_project%5B%5D={5}&lt_issue_start={6}&lt_total_nums={7}&lt_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);
        }
예제 #6
0
        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}&para%5Btype%5D={10}&para%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);
        }
예제 #7
0
        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);
        }
예제 #8
0
        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
                        {
                            string        str8;
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        str6          = "0";
                            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, indexLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            }
                            else
                            {
                                str8 = "api_token={11}&orders%5B0%5D%5Bbase_bet_amount%5D={0}&orders%5B0%5D%5Bbet_amount%5D={1}&orders%5B0%5D%5Bbet_count%5D={2}&orders%5B0%5D%5Bcategory_id%5D={3}&orders%5B0%5D%5Bchunk%5D={4}&orders%5B0%5D%5Bcompressed%5D={5}&orders%5B0%5D%5Bcontent%5D={6}&orders%5B0%5D%5Bissue%5D={7}&orders%5B0%5D%5Bmultiple%5D={8}&orders%5B0%5D%5Bplay_id%5D={9}&orders%5B0%5D%5Bselected_feedback_percent%5D={10}";
                                string prize = base.Prize;
                                str8 = string.Format(str8, new object[] { plan.Money, plan.AutoTotalMoney(str4, true), num, this.GetBetsLotteryID(plan.Type), str6, "0", this.GetNumberList(plan.Type, pTNumberList, plan.Play, plan.RXWZ), this.GetBetsExpect(plan.CurrentExpect, ""), Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetPlayMethodID(plan.Type, plan.Play), "0", this.DataToken });
                                HttpHelper.GetResponse8(ref pResponsetext, betsLine, "POST", str8, indexLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            }
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #9
0
        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
                            {
                                str7 = "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;
                                str7 = string.Format(str7, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, pTNumberList, plan.Play, plan.RXWZ), plan.UnitString, Convert.ToInt32(plan.AutoTimes(str4, true)), prize, this.GetBetsExpect(plan.CurrentExpect, "") });
                                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);
        }
예제 #10
0
        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);
        }
예제 #11
0
        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);
        }
예제 #12
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str];
                    foreach (string str2 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str2, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str2]);
                            string        pUrl          = this.GetLine() + "/DoBets/__Advisory";
                            string        indexLine     = this.GetIndexLine();
                            string        pResponsetext = "";
                            HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
                            base.Token = CommFunc.GetIndexString(pResponsetext, "\"adv\":\"", "\"", 0);
                            if (base.Token != "")
                            {
                                pUrl = this.GetBetsLine(plan.Type);
                                int    num    = Convert.ToInt32(Math.Pow(10.0, (double)(plan.Unit - 1)));
                                int    num2   = plan.FNNumber(str2);
                                string format = "data=[\"{0}|{1}|{2}|{3}|{4}|{5}|{6}\"]&lottyid={7}&adv={8}";
                                format        = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str2, true)), base.Rebate, num2, num, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), base.ExpectID, base.Token });
                                pResponsetext = "";
                                HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", format, indexLine, 0x2710, "UTF-8", true);
                            }
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #13
0
        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";
                            List <string> list2         = CommFunc.SplitString(this.GetPlayMethodID(plan.Type, plan.Play), "-", -1);
                            string        format        = "%7B'type'%3A'{0}'%2C'methodid'%3A{1}%2C'menuid'%3A{2}%2C'codes'%3A'{3}'%2C'nums'%3A{4}%2C'omodel'%3A2%2C'times'%3A{5}%2C'money'%3A{6}%2C'mode'%3A{7}%2C'desc'%3A'{8}+{9}'%2C'iscompress'%3A'0'%2C'poschoose'%3A'{10}'%7D";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            int           num2          = CommFunc.Random(1, 0x2710);
                            format = string.Format(format, new object[] { str6, list2[0], list2[1], 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) });
                            string str9 = "lotteryid={0}&curmid={1}&poschoose={7}&flag=save&play_source=&pmodelradio=0&pmodel=0&lt_project_modes={2}&lt_price_h=&lt_project%5B%5D={3}&lt_issue_start={4}&lt_total_nums={5}&lt_total_money={6}&randomNum={8}&username={9}";
                            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), this.GetRXWZString(plan.RXWZ), num2, base.UserID });
                            int pTime = 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);
        }
예제 #14
0
        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   = CommFunc.CheckPlayIsRX(play) ? playInfo.IndexList.Count.ToString() : "";
                            string format = "balls%5B0%5D%5BjsId%5D={0}&balls%5B0%5D%5BwayId%5D={1}&balls%5B0%5D%5Bball%5D={2}&balls%5B0%5D%5BviewBalls%5D=&balls%5B0%5D%5Bnum%5D={3}&balls%5B0%5D%5Btype%5D={4}&balls%5B0%5D%5BonePrice%5D={5}&balls%5B0%5D%5BprizeGroup%5D={6}&balls%5B0%5D%5Bmoneyunit%5D={7}&balls%5B0%5D%5Bmultiple%5D={8}&balls%5B0%5D%5Bextra%5D%5Bposition%5D={9}&balls%5B0%5D%5Bextra%5D%5Bseat%5D={10}";
                            format = string.Format(format, new object[] { "1", this.GetPlayMethodID(plan.Type, plan.Play), HttpUtility.UrlEncode(this.GetNumberList1(pTNumberList, plan.Play, null)), num, this.GetPlayString(plan.Play), num2, prize, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetRXWZString1(plan.RXWZ, play, pTNumberList), str8 });
                            string str10 = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&{1}&orders%5B{2}%5D={3}&amount={4}";
                            str10 = string.Format(str10, new object[] { this.GetBetsLotteryID(plan.Type), format, this.GetBetsExpect(plan.CurrentExpect, ""), "1", plan.AutoTotalMoney(str4, true) });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str10, lotteryLine, base.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #15
0
        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";
                            string        format        = "%7B'type'%3A'{9}'%2C'methodid'%3A{0}%2C'codes'%3A'{1}'%2C'nums'%3A{2}%2C'omodel'%3A{3}%2C'times'%3A{4}%2C'money'%3A{5}%2C'mode'%3A{6}%2C'desc'%3A'{7}+{8}'%2C'poschoose'%3A'{10}'%7D";
                            int           num           = plan.FNNumber(str4);
                            format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, "2", Convert.ToInt32(plan.AutoTimes(str4, true)), plan.AutoTotalMoney(str4, true), plan.Unit, this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), str6, this.GetRXWZString(plan.RXWZ) });
                            string str8  = "lotteryid={0}&curmid={1}&poschoose={7}&flag=save&play_source=&lt_project%5B%5D={2}&lt_issue_start={3}&lt_total_nums={4}&lt_total_money={5}&randomNum={6}";
                            string prize = this.GetPrize(plan.Type, plan.Play);
                            str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsLotteryCurmid(plan.Type), format, this.GetBetsExpect(plan.CurrentExpect, ""), num, plan.AutoTotalMoney(str4, true), DateTime.Now.ToOADate(), this.GetRXWZString(plan.RXWZ) });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, pReferer, 0x2710, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                            Thread.Sleep(0xbb8);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #16
0
        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);
        }
예제 #17
0
        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);
        }
예제 #18
0
        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);
        }
예제 #19
0
        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);
        }
예제 #20
0
        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);
                            int           num2          = Convert.ToInt32(Math.Pow(10.0, (double)(5 - plan.Unit)));
                            string        format        = "token={0}&planId={1}&bet%5B0%5D.betNum={2}&bet%5B0%5D.playId={3}&bet%5B0%5D.betMultiple={4}&bet%5B0%5D.moneyMethod={5}&bet%5B0%5D.betMethod={6}";
                            format = string.Format(format, new object[] { base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str4, true)), num2, "0" });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                            Thread.Sleep(0x7d0);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #21
0
        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);
        }
예제 #22
0
        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);
        }
예제 #23
0
        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);
        }
예제 #24
0
        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         = base.Prize;
                            List <string> list2         = CommFunc.SplitString(this.GetPlayMethodID(plan.Type, plan.Play), "-", -1);
                            string        format        = "(\"gameId\":{0},\"currentNumero\":\"{1}\",\"winningStop\":false,\"abandoning\":false,\"betCartAmountSum\":\"{2}\",\"chase\":false,\"device\":\"WEB\",\"orderType\":{3},\"quickChase\":false,\"prizeModeId\":{4},\"bettingSlipString\":\"{5}~{6}~{7}~{8}~{9}~{10}~1\")";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true), "1", "1", this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), list2[0], plan.Unit, prize, Convert.ToInt32(plan.AutoTimes(str4, true)), list2[1] }).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);
        }
예제 #25
0
        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);
        }
예제 #26
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine  = this.GetBetsLine(plan.Type);
                string indexCode = this.GetIndexCode(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);
                            int           num2          = Convert.ToInt32(base.Rebate);
                            string        format        = "command=lottery_logon_request_transmit_v2&param=%7B%22command_id%22%3A521%2C%22lottery_id%22%3A%22{0}%22%2C%22issue%22%3A%22{1}%22%2C%22count%22%3A{2}%2C%22bet_info%22%3A%5B%7B%22method_id%22%3A%22{3}%22%2C%22number%22%3A%22{4}%22%2C%22rebate_count%22%3A{5}%2C%22multiple%22%3A%22{6}%22%2C%22mode%22%3A{7}%2C%22bet_money%22%3A%22{8}%22%2C%22calc_type%22%3A%22{9}%22%7D%5D%7D";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), 1, this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num2, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit - 1, plan.AutoTotalMoney(str4, true), 0 });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, indexCode, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #27
0
        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);
        }
예제 #28
0
        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);
        }
예제 #29
0
        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);
        }
예제 #30
0
        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);
        }