Exemple #1
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);
        }
Exemple #2
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);
        }
Exemple #3
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;
                            string        format        = "betnum={0}&money={1}&gameId={2}&number={3}&isTrace=false&istracestop=1&orders%5B0%5D%5BmethodId%5D={4}&orders%5B0%5D%5Bbetnum%5D={0}&orders%5B0%5D%5Bmultiple%5D={5}&orders%5B0%5D%5Bmode%5D={6}&orders%5B0%5D%5Bmoney%5D={1}&orders%5B0%5D%5Bcontent%5D={7}&orders%5B0%5D%5Brebate%5D={8}&orders%5B0%5D%5BrebateMoney%5D={9}&{10}";
                            format = string.Format(format, new object[] { num, plan.AutoTotalMoney(str4, true), this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money / 2.0, this.GetNumberList1(pTNumberList, plan.Play, null), prize, "0", this.GetRXWZString1(plan.RXWZ, plan.Play) });
                            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);
        }
Exemple #4
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);
        }
Exemple #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 = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            List <string> pList         = new List <string> {
                                this.GetPlayMethodID(plan.Type, plan.Play),
                                this.GetNumberList1(pTNumberList, plan.Play, null),
                                num.ToString(),
                                "1",
                                plan.AutoTotalMoney(str4, true).ToString()
                            };
                            pList.Add((plan.Unit - 1).ToString());
                            pList.Add($"{prize}|{"0"}|{"2"}");
                            pList.Add(Convert.ToInt32(plan.AutoTimes(str4, true)).ToString());
                            string str7       = CommFunc.Join(pList, ":");
                            string rXWZString = "";
                            if (CommFunc.CheckPlayIsRXDS(plan.Play))
                            {
                                rXWZString = this.GetRXWZString(plan.RXWZ);
                            }
                            else if (CommFunc.CheckPlayIsRXFS(plan.Play))
                            {
                                List <string> list3 = new List <string>();
                                int           num2  = 0;
                                foreach (string str9 in pTNumberList)
                                {
                                    if (str9 != "*")
                                    {
                                        string item = AppInfo.IndexDic[num2] + "位";
                                        list3.Add(item);
                                    }
                                    num2++;
                                }
                                rXWZString = CommFunc.Join(list3, "、");
                            }
                            string format = "data={0}:{7}&lottery_number_id={1}&is_add=0&lottery_id={2}&amount={3}&com=n*{4}*{5}*{6}";
                            format = string.Format(format, new object[] { str7, base.ExpectID, this.GetBetsLotteryID(plan.Type), plan.AutoTotalMoney(str4, true), DateTime.Now.ToOADate(), base.ExpectID, base.Token, rXWZString });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, 0x2710, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #6
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);
        }
Exemple #7
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);
        }
Exemple #8
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);
                            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);
        }
Exemple #9
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);
        }
Exemple #10
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         = base.Prize;
                            string        format        = "[(\"lotteryID\":\"{0}\",\"gameID\":\"{1}\",\"betNum\":\"{2}\",\"betCount\":\"{3}\",\"betAmount\":\"{4}\",\"mode\":\"{5}\",\"multiCount\":\"{6}\",\"unit\":\"{7}\",\"issueNO\":\"{8}\",\"bonusAmount\":\"{9}\",\"subID\":\"{10}\")]";
                            format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, plan.AutoTotalMoney(str4, true), prize, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, this.GetBetsExpect(plan.CurrentExpect, ""), plan.Mode, this.GetRXWZString1(plan.RXWZ, plan.Play) }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #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
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        format        = "action=AddBetting&data=%7B%22BettingData%22%3A%5B%7B%22lottery_code%22%3A%22{0}%22%2C%22play_detail_code%22%3A%22{1}%22%2C%22betting_issuseNo%22%3A%22{2}%22%2C%22betting_number%22%3A%22{3}%22%2C%22betting_count%22%3A{4}%2C%22graduation_count%22%3A{5}%2C%22betting_money%22%3A{6}%2C%22betting_point%22%3A%22{7}-0.0%25%22%2C%22betting_model%22%3A{8}%2C%22md_pattern%22%3A{9}%7D%5D%7D";
                            string        str7          = (Convert.ToDouble(this.GetPrize(plan.Type, plan.Play)) / Math.Pow(10.0, (double)(plan.Unit - 1))).ToString();
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetBetsExpect(plan.CurrentExpect, ""), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.AutoTotalMoney(str4, true), str7, plan.Money / 2.0, "1" });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #12
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);
        }
Exemple #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        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);
        }
Exemple #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 = "";
                            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);
        }
Exemple #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 = "";
                            int           num           = plan.FNNumber(str4);
                            double        num2          = Convert.ToDouble(base.Rebate) * 10.0;
                            string        format        = "(\"LotteryCode\":\"{0}\",\"BettingCount\":{1},\"GraduationCount\":{2},\"IssueNo\":\"{3}\",\"Multiple\":{4},\"LotteryPlayDetailCode\":\"{5}\",\"SelectMedian\":\"{6}\",\"IsChaseNo\":false,\"BettingNumber\":\"{7}\",\"BettingInfoIssueList\":[(\"IssueNo\":\"{3}\",\"Multiple\":{4},\"PerPrice\":{8})],\"RuleName\":\"{9}\",\"BettingMoney\":\"{10}\",\"BuyIssueCount\":{11})";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), num, num2, this.GetBetsExpect(plan.CurrentExpect, ""), Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetPlayMethodID(plan.Type, plan.Play), this.GetRXWZString(plan.RXWZ, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), plan.Money, this.GetPlayString(plan.Play), plan.AutoTotalMoney(str4, true), "1" }).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);
        }
Exemple #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           = 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);
        }
Exemple #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 = "";
                            string        str6          = CommFunc.CheckPlayIsDS(plan.Play) ? "input" : "digital";
                            string        format        = "%7B'type'%3A'{9}'%2C'methodid'%3A{0}%2C'codes'%3A'{1}'%2C'nums'%3A{2}%2C'guaji'%3A1%2C'omodel'%3A0%2C'times'%3A{3}%2C'money'%3A{4}%2C'mode'%3A{5}%2C'desc'%3A'{6}+{7}'%2C'poschoose'%3A'{8}'%7D";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.AutoTotalMoney(str4, true), plan.Unit, this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), this.GetRXWZString(plan.RXWZ), str6 });
                            string str9 = "lotteryid={0}&curmid={1}&poschoose=&flag=save&play_source=&pmodelradio=0&pmodel=0&lt_project_modes={2}&lt_price_h=&lt_project%5B%5D={3}&lt_issue_start={4}&lt_total_nums={5}&lt_total_money={6}";
                            str9 = string.Format(str9, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsLotteryCurmid(plan.Type), plan.Unit, format, this.GetBetsExpect(plan.CurrentExpect, ""), num, plan.AutoTotalMoney(str4, true) });
                            int pTime = (plan.Type == ConfigurationStatus.LotteryType.UCFFC) ? 0x4e20 : 0xea60;
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str9, lotteryLine, pTime, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #18
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);
                            double        num3          = plan.AutoTotalMoney(str4, true);
                            string        str6          = CommFunc.CheckPlayIsDS(plan.Play) ? "true" : "false";
                            string        play          = plan.Play;
                            List <string> list2         = new List <string>();
                            Dictionary <string, List <string> > dictionary3 = new Dictionary <string, List <string> >();
                            int count = CommFunc.GetPlayInfo(play).IndexList.Count;
                            if (CommFunc.CheckPlayIsRX(play))
                            {
                                int num5;
                                if (CommFunc.CheckPlayIsRXDS(play))
                                {
                                    List <string> itemList = new List <string>();
                                    num5 = 0;
                                    while (num5 < plan.RXWZ.Count)
                                    {
                                        string item = plan.RXWZ[num5].ToString();
                                        itemList.Add(item);
                                        num5++;
                                    }
                                    list2 = CommFunc.GetCombinations(itemList, count, "");
                                    num2  = CommFunc.GetBetsCodeCount(pTNumberList, play, null);
                                    num3  = (num2 * num) * plan.Money;
                                }
                                else if (CommFunc.CheckPlayIsRXFS(play))
                                {
                                    List <string> list4 = new List <string>();
                                    num5 = 0;
                                    while (num5 < pTNumberList.Count)
                                    {
                                        string str9 = $"{num5}-{pTNumberList[num5]}";
                                        list4.Add(str9);
                                        num5++;
                                    }
                                    List <string> list5 = CommFunc.GetCombinations(list4, count, "|");
                                    for (num5 = 0; num5 < list5.Count; num5++)
                                    {
                                        string pStr = list5[num5];
                                        if (!pStr.Contains("*"))
                                        {
                                            List <string> list6 = new List <string>();
                                            List <string> list7 = new List <string>();
                                            List <string> list8 = CommFunc.SplitString(pStr, "|", -1);
                                            for (int j = 0; j < list8.Count; j++)
                                            {
                                                string str11 = list8[j];
                                                list6.Add(str11.Split(new char[] { '-' })[0]);
                                                list7.Add(str11.Split(new char[] { '-' })[1]);
                                            }
                                            string str12 = CommFunc.Join(list6);
                                            dictionary3[str12] = list7;
                                            list2.Add(str12);
                                        }
                                    }
                                }
                            }
                            else
                            {
                                list2.Add("0");
                            }
                            List <string> pList = new List <string>();
                            for (int i = 0; i < list2.Count; i++)
                            {
                                string str13 = list2[i];
                                if (CommFunc.CheckPlayIsRXFS(play))
                                {
                                    string playName = "";
                                    switch (count)
                                    {
                                    case 2:
                                        playName = "前二直选复式";
                                        break;

                                    case 3:
                                        playName = "前三直选复式";
                                        break;

                                    case 4:
                                        playName = "前四直选复式";
                                        break;
                                    }
                                    List <string> pCodeList = dictionary3[str13];
                                    num2         = CommFunc.GetBetsCodeCount(pCodeList, playName, null);
                                    pTNumberList = CommFunc.CopyList(pCodeList);
                                    num3         = (num2 * num) * plan.Money;
                                }
                                List <int> pIndexList = CommFunc.ConvertSameListInt(str13);
                                string     str15      = "%7B%22i%22%3A{0}%2C%22c%22%3A%22{1}%22%2C%22n%22%3A{2}%2C%22t%22%3A%22{3}%22%2C%22k%22%3A{4}%2C%22m%22%3A{5}%2C%22a%22%3A{6}%7D";
                                str15 = string.Format(str15, new object[] { this.GetPlayMethodID1(plan.Type, play, pIndexList), this.GetNumberList1(pTNumberList, plan.Play, null), num2, num, "0", plan.Unit, num3 });
                                pList.Add(str15);
                            }
                            string str16  = CommFunc.Join(pList, "%2C");
                            string format = "gameId={0}&periodId={1}&isSingle={2}&canAdvance=false&orderList=%5B{3}%5D";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), base.ExpectID, str6, str16 });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                            Thread.Sleep(0xbb8);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #19
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);
        }
Exemple #20
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);
        }
Exemple #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);
                            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);
        }
Exemple #22
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);
                            string        format        = "content=%7B%22command_id%22%3A{0}%2C%22lottery_id%22%3A%22{1}%22%2C%22issue%22%3A%22{2}%22%2C%22count%22%3A{3}%2C%22bet_info%22%3A%5B%7B%22method_id%22%3A%22{4}%22%2C%22number%22%3A%22{5}%22%2C%22rebate_count%22%3A{6}%2C%22multiple%22%3A%22{7}%22%2C%22mode%22%3A%22{8}%22%2C%22bet_money%22%3A%22{9}%22%2C%22calc_type%22%3A%22{10}%22%7D%5D%7D";
                            format = string.Format(format, new object[] { "521", this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), 1, this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), base.Rebate, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit - 1, plan.AutoTotalMoney(str4, true), 0 });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #23
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);
        }
Exemple #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           = "";
                            string        play                    = plan.Play;
                            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(play);
                            int    num   = plan.FNNumber(str4);
                            int    num2  = 2;
                            string prize = base.Prize;
                            string str8  = "";
                            Dictionary <string, string> dictionary3 = new Dictionary <string, string>();
                            if (CommFunc.CheckPlayIsRX(play))
                            {
                                string        current;
                                string        str10;
                                string        str11;
                                int           num3;
                                int           count;
                                List <string> list5;
                                List <string> pList = new List <string>();
                                Dictionary <string, string> dictionary4 = new Dictionary <string, string>();
                                List <string> list3 = CommFunc.SplitString(this.GetPlayMethodID(plan.Type, plan.Play), ";", -1);
                                using (List <string> .Enumerator enumerator3 = list3.GetEnumerator())
                                {
                                    while (enumerator3.MoveNext())
                                    {
                                        current            = enumerator3.Current;
                                        str10              = CommFunc.Join(current.Split(new char[] { '-' })[0], ",", -1);
                                        str11              = current.Split(new char[] { '-' })[1];
                                        dictionary4[str10] = str11;
                                    }
                                }
                                if (CommFunc.CheckPlayIsRXFS(play))
                                {
                                    List <string> itemList = new List <string>();
                                    num3 = 0;
                                    while (num3 < pTNumberList.Count)
                                    {
                                        string item = $"{num3}-{pTNumberList[num3]}";
                                        itemList.Add(item);
                                        num3++;
                                    }
                                    count = playInfo.IndexList.Count;
                                    list5 = CommFunc.GetCombinations(itemList, count, "|");
                                    num3  = 0;
                                    while (num3 < list5.Count)
                                    {
                                        string pStr = list5[num3];
                                        if (!pStr.Contains("*"))
                                        {
                                            List <string> list6 = new List <string>();
                                            List <string> list7 = new List <string>();
                                            List <string> list8 = CommFunc.SplitString(pStr, "|", -1);
                                            for (int i = 0; i < list8.Count; i++)
                                            {
                                                string str14 = list8[i];
                                                list6.Add(str14.Split(new char[] { '-' })[0]);
                                                list7.Add(str14.Split(new char[] { '-' })[1]);
                                            }
                                            str10 = CommFunc.Join(list6, ",");
                                            str11 = CommFunc.Join(list7, "|");
                                            dictionary3[str10] = str11;
                                        }
                                        num3++;
                                    }
                                }
                                else if (CommFunc.CheckPlayIsRXDS(play))
                                {
                                    List <string> list9 = new List <string>();
                                    num3 = 0;
                                    while (num3 < plan.RXWZ.Count)
                                    {
                                        string str15 = plan.RXWZ[num3].ToString();
                                        list9.Add(str15);
                                        num3++;
                                    }
                                    count = playInfo.IndexList.Count;
                                    list5 = CommFunc.GetCombinations(list9, count, ",");
                                    for (num3 = 0; num3 < list5.Count; num3++)
                                    {
                                        str10 = list5[num3];
                                        str11 = this.GetNumberList1(pTNumberList, play, null);
                                        if (CommFunc.CheckPlayIsZuX(play) && play.Contains("复式"))
                                        {
                                            str11 = CommFunc.Join(str11, "|", -1);
                                        }
                                        dictionary3[str10] = str11;
                                    }
                                }
                                int num6 = 1;
                                foreach (string str100 in dictionary3.Keys)
                                {
                                    current = dictionary4[str100];
                                    str11   = dictionary3[str100];
                                    List <string> list10 = CommFunc.SplitString(str100, ",", -1);
                                    List <string> list11 = new List <string>();
                                    foreach (string str16 in list10)
                                    {
                                        list11.Add((Convert.ToInt32(str16) + 1).ToString());
                                    }
                                    string str17 = CommFunc.Join(list11);
                                    int    num8  = num;
                                    if (CommFunc.CheckPlayIsRXFS(play))
                                    {
                                        count = playInfo.IndexList.Count;
                                        string playName = "";
                                        switch (count)
                                        {
                                        case 2:
                                            playName = "前二直选复式";
                                            break;

                                        case 3:
                                            playName = "前三直选复式";
                                            break;

                                        case 4:
                                            playName = "前四直选复式";
                                            break;
                                        }
                                        num8 = CommFunc.GetBetsCodeCount(CommFunc.SplitString(str11, "|", -1), playName, null);
                                    }
                                    else if (CommFunc.CheckPlayIsRXDS(play))
                                    {
                                        num8 = CommFunc.GetBetsCodeCount(pTNumberList, play, null);
                                    }
                                    string str19 = "%7B%22ball%22%3A%22{0}%22%2C%22viewBalls%22%3A%22%22%2C%22num%22%3A{1}%2C%22type%22%3A%22{2}%22%2C%22onePrice%22%3A%22{3}%22%2C%22moneyunit%22%3A{4}%2C%22multiple%22%3A{5}%2C%22prizeGroup%22%3A%22{6}%22%2C%22index%22%3A%22{7}%22%2C%22jsId%22%3A{8}%2C%22wayId%22%3A%22{9}%22%2C%22position%22%3A%22{10}%22%7D";
                                    str19 = string.Format(str19, new object[] { HttpUtility.UrlEncode(str11), num8, this.GetPlayString(play), num2, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), prize, HttpUtility.UrlEncode(str100), num6, current, str17 });
                                    pList.Add(str19);
                                    num6++;
                                }
                                str8 = CommFunc.Join(pList, "%2C");
                                str8 = $"ballstr=%5B{str8}%5D";
                            }
                            else
                            {
                                str8 = "ballstr=%5B%7B%22jsId%22%3A{0}%2C%22wayId%22%3A{1}%2C%22ball%22%3A%22{2}%22%2C%22viewBalls%22%3A%22%22%2C%22num%22%3A{3}%2C%22type%22%3A%22{4}%22%2C%22onePrice%22%3A%22{5}%22%2C%22moneyunit%22%3A%22{6}%22%2C%22multiple%22%3A{7}%2C%22prizeGroup%22%3A%22{8}%22%7D%5D";
                                str8 = string.Format(str8, new object[] { "1", this.GetPlayMethodID(plan.Type, plan.Play), HttpUtility.UrlEncode(this.GetNumberList1(pTNumberList, plan.Play, null)), num, this.GetPlayString(plan.Play), num2, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), prize });
                            }
                            string format = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&orders%5B{1}%5D=1&amount={2}&{3}&orderstr=%7B%22{1}%22%3A{4}%7D";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true), str8, "1" });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #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.GetLine()}/game/index?id={this.GetBetsLotteryID(plan.Type)}";
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = base.Prize;
                            string        format        = "lottery={0}&no={1}&flevel_modes={2}&total_price={3}&total_zhushu={4}&flevel_fd=&data[0][multiple]={5}&data[0][num]={6}&data[0][pattern]={7}&data[0][play]={8}&data[0][price]={3}&data[0][rxw]={11}&data[0][zhushu]={4}&data[0][peilv]=&main_wf=&wf=&token={9}&user_id={10}&sign=";
                            format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), prize, plan.AutoTotalMoney(str4, true), num, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetNumberList1(pTNumberList, plan.Play, null), plan.Money, this.GetPlayMethodID(plan.Type, plan.Play), base.Token, base.VerifyCodeToken, this.GetRXWZString(plan.RXWZ) });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Exemple #26
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);
        }
Exemple #27
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);
        }
Exemple #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);
        }
Exemple #29
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);
        }