예제 #1
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'{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           num           = plan.FNNumber(str4);
                            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, "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, plan.Play);
                            str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit, prize, base.Rebate, format, this.GetBetsExpect(plan.CurrentExpect, ""), num, plan.AutoTotalMoney(str4, true) });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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.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         = this.GetPrize(plan.Type, plan.Play);
                            string        str7          = CommFunc.Random(0x3b9aca00, 0x77359400).ToString() + CommFunc.Random(100, 0x3e7);
                            string[]      strArray      = this.GetPlayMethodID(plan.Type, plan.Play).Split(new char[] { '-' });
                            string        betsLotteryID = this.GetBetsLotteryID(plan.Type);
                            string        format        = "code%5B0%5D%5BfanDian%5D={0}&code%5B0%5D%5BbonusProp%5D={1}&code%5B0%5D%5Bmode%5D={2}&code%5B0%5D%5BbeiShu%5D={3}&code%5B0%5D%5BorderId%5D={4}&code%5B0%5D%5BactionData%5D={5}&code%5B0%5D%5BactionNum%5D={6}&code%5B0%5D%5BplayedGroup%5D={7}&code%5B0%5D%5BplayedId%5D={8}&code%5B0%5D%5Btype%5D={9}&code%5B0%5D%5BweiShu%5D={10}&para%5Btype%5D={11}&para%5BactionNo%5D={12}&para%5BkjTime%5D={13}&is_combine=0";
                            format = string.Format(format, new object[] { "0", prize, plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), str7, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, strArray[0], strArray[1], betsLotteryID, "0", betsLotteryID, this.GetBetsExpect(plan.CurrentExpect, ""), this.KJTime });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, 0x2710, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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);
                            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         = this.GetPrize(plan.Type, "前三直选单式");
                            prize = this.GetMaxPrize(prize, 1950.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, 0x2710, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #4
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            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);
        }
예제 #5
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            int           num2          = Convert.ToInt32(Math.Pow(10.0, (double)(5 - plan.Unit)));
                            string        format        = "token={0}&planId={1}&bet%5B0%5D.betNum={2}&bet%5B0%5D.playId={3}&bet%5B0%5D.betMultiple={4}&bet%5B0%5D.moneyMethod={5}&bet%5B0%5D.betMethod={6}";
                            format = string.Format(format, new object[] { base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str4, true)), num2, "0" });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                            Thread.Sleep(0x7d0);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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           = 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);
        }
예제 #7
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            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);
        }
예제 #8
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine  = this.GetBetsLine(plan.Type);
                string indexLine = this.GetIndexLine();
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            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);
        }
예제 #9
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        format        = "\"lotteryId\":{0},\"codes\":\"{1}\",\"num\":{2},\"ruleId\":{3},\"ruleCode\":\"{4}\",\"multiple\":{5},\"model\":\"1{6}\",\"code\":{7}";
                            string        prize         = base.Prize;
                            string[]      strArray      = Strings.Split(this.GetPlayMethodID(plan.Type, plan.Play), "-", -1, CompareMethod.Binary);
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, strArray[0], strArray[1], Convert.ToInt32(plan.AutoTimes(str4, true)), plan.UnitString, prize, 1 });
                            format = "blist=" + HttpUtility.UrlEncode("[{" + format + "}]");
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime1, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #10
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            int           num2          = 1;
                            string        format        = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&_token={1}&balls%5B0%5D%5BwayId%5D={2}&balls%5B0%5D%5Bnum%5D={3}&balls%5B0%5D%5BonePrice%5D={4}&balls%5B0%5D%5Btype%5D={5}&balls%5B0%5D%5Bmoneyunit%5D={6}&balls%5B0%5D%5Bprize_group%5D={7}&balls%5B0%5D%5Bball%5D={8}&balls%5B0%5D%5Bmultiple%5D={9}&orders%5B{10}%5D=1&amount={11}";
                            string        prize         = base.Prize;
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), base.Token, this.GetPlayMethodID(plan.Type, plan.Play), num, num2, this.GetPlayString(plan.Play), plan.Money, prize, this.GetNumberList1(pTNumberList, plan.Play, null), Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true) });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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        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);
        }
예제 #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 = "";
                            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);
        }
예제 #13
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine  = this.GetBetsLine(plan.Type);
                string indexCode = this.GetIndexCode(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            int           num2          = Convert.ToInt32(base.Rebate);
                            string        format        = "command=lottery_logon_request_transmit_v2&param=%7B%22command_id%22%3A521%2C%22lottery_id%22%3A%22{0}%22%2C%22issue%22%3A%22{1}%22%2C%22count%22%3A{2}%2C%22bet_info%22%3A%5B%7B%22method_id%22%3A%22{3}%22%2C%22number%22%3A%22{4}%22%2C%22rebate_count%22%3A{5}%2C%22multiple%22%3A%22{6}%22%2C%22mode%22%3A{7}%2C%22bet_money%22%3A%22{8}%22%2C%22calc_type%22%3A%22{9}%22%7D%5D%7D";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), 1, this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num2, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit - 1, plan.AutoTotalMoney(str4, true), 0 });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, indexCode, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #14
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            string        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);
        }
예제 #15
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        = "%22%3A%5B%7B%22type%22%3A%22{8}%22%2C%22methodid%22%3A{0}%2C%22mode%22%3A{1}%2C%22times%22%3A{2}%2C%22point%22%3A%22{3}%22%2C%22codes%22%3A%22{4}%22%2C%22desc%22%3A%22{5}+{6}%22%2C%22position%22%3A%22{7}%22%7D%5D%7D";
                            format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), plan.Unit, Convert.ToInt32(plan.AutoTimes(str4, true)), "0", this.GetNumberList1(pTNumberList, plan.Play, null), this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), this.GetRXWZString(plan.RXWZ), str6 });
                            string str8 = "jsonstr=%7B%22lotteryId%22%3A%22{0}%22%2C%22issuo%22%3A%22{1}%22%2C%22memberid%22%3A%22{4}%22%2C%22lt_trace_if%22%3Afalse%2C%22lt_trace_stop%22%3Afalse%2C%22lt_trace_issues%22%3A%5B%5D%2C%22lt_project{2}&__RequestVerificationToken={3}";
                            str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), format, "undefined", base.PTUserID });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, lotteryLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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);
        }
예제 #17
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);
        }
예제 #18
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            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);
        }
예제 #19
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        prize         = base.Prize;
                            List <string> list2         = CommFunc.SplitString(this.GetPlayMethodID(plan.Type, plan.Play), "-", -1);
                            string        format        = "betData=%7B%22data%22%3A%5B%7B%22gamegroup%22%3A%22{0}%22%2C%22betmode%22%3A%22{1}%22%2C%22location%22%3A%22{2}%22%2C%22content%22%3A%22{3}%22%2C%22multiple%22%3A%22{4}%22%2C%22credit%22%3A%22{5}%22%7D%5D%7D&txtCBID={6}&txtPrizelevel={7}&txtYear={8}&txtIssue={9}&txtSubissue={10}";
                            format = string.Format(format, new object[] { list2[0], list2[1], this.GetRXWZString(plan.RXWZ), this.GetNumberList1(pTNumberList, plan.Play, null), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, this.GetPTLotteryName(plan.Type), prize, this.BetsExpectYear, this.BetsExpectIssue, this.BetsExpectSubissue });
                            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);
        }
예제 #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          = 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);
        }
예제 #21
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);
        }
예제 #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         = 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);
        }
예제 #23
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            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);
        }
예제 #24
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        format        = "text=%5B%7B%22lottery%22%3A%22{0}%22%2C%22issue%22%3A%22%22%2C%22method%22%3A%22{1}%22%2C%22content%22%3A%22{2}%22%2C%22model%22%3A%22{3}%22%2C%22multiple%22%3A{4}%2C%22code%22%3A{5}%2C%22issue%22%3A%22{6}%22%2C%22compress%22%3Afalse%7D%5D";
                            string        prize         = base.Prize;
                            format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), plan.UnitString, Convert.ToInt32(plan.AutoTimes(str4, true)), prize, this.GetBetsExpect(plan.CurrentExpect, "") });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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);
        }
예제 #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);
                            string        format        = "(\"game_id\":\"{0}\",\"game_type_id\":{1},\"game_cycle_id\":\"{2}\",\"bet_info\":\"{3}\",\"bet_mode\":\"{4}\",\"bet_multiple\":\"{5}\",\"bet_percent_type\":\"{6}\")";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), base.ExpectID, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), plan.Unit - 1, Convert.ToInt32(plan.AutoTimes(str4, true)), "0" });
                            format = this.GetEncode(format, true);
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #27
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            string        format        = "(\"IsChase\":false,\"Issue\":\"{0}\",\"IsAllIn\":false,\"LstOrder\":[(\"PlayType\":\"{1}\",\"Codes\":\"{2}\",\"IsZip\":\"false\",\"Model\":\"{3}\",\"MoneyUnit\":\"{4}\",\"Multiple\":\"{5}\")],\"LotteryType\":{6})";
                            format = string.Format(format, new object[] { this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), "0.0", plan.Unit + 3, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetBetsLotteryID(plan.Type) }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
예제 #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 = "";
                            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);
        }
예제 #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 = "";
                            string        str6          = CommFunc.CheckPlayIsDS(plan.Play) ? "1" : "0";
                            string        format        = "c=1&id={0}&i={1}&b0=i%3D{2}%26t%3D{3}%26m%3D{4}%26len%3D{5}%26ds%3D{6}%26r%3D{7}%26b%3D{8}%26bt%3D{9}";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit + 4, "0", str6, "2", this.GetNumberList1(pTNumberList, plan.Play, null), this.GetRXWZString1(pTNumberList, plan.RXWZ, plan.Play) });
                            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);
        }
예제 #30
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        format        = "gid={0}&issue={1}&rebate={2}&codes%5B0%5D%5Bpid%5D={3}&codes%5B0%5D%5Bcode%5D={4}&codes%5B0%5D%5Bmultiple%5D={5}&codes%5B0%5D%5Bbet_num%5D={6}&codes%5B0%5D%5Bamount_mode%5D={7}&appendcodestop={8}";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), "0", this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), Convert.ToInt32(plan.AutoTimes(str4, true)), num, plan.Money / 2.0, 1 });
                            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);
        }