Example #1
0
        public string GetRXWZString(List <int> pRXWZ, string playName)
        {
            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            if (CommFunc.CheckPlayIsRXDS(playName))
            {
                List <string> pList = new List <string>();
                for (int i = 0; i < 5; i++)
                {
                    string item = pRXWZ.Contains(i) ? "1" : "0";
                    pList.Add(item);
                }
                return(CommFunc.Join(pList));
            }
            if (CommFunc.CheckPlayIsRXFS(playName))
            {
                switch (playInfo.IndexList.Count)
                {
                case 2:
                    return("00011");

                case 3:
                    return("00111");

                case 4:
                    return("01111");
                }
            }
            return("11111");
        }
Example #2
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            string str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "%2C").Replace("*", "");
                }
                else if (playName.Contains("定位胆"))
                {
                    char          ch    = playName[3];
                    int           num   = AppInfo.FiveDic[ch.ToString()];
                    List <string> pList = new List <string>();
                    for (int i = 0; i < 5; i++)
                    {
                        string item = "*";
                        if (i == num)
                        {
                            item = CommFunc.Join(pNumberList);
                        }
                        pList.Add(item);
                    }
                    str = CommFunc.Join(pList, "%2C").Replace("*", "");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList);
                    }
                    else
                    {
                        str = CommFunc.Join(pNumberList, "%24");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "%24");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    str = this.GetRXWZString(pRXWZ) + str;
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, "%24").Replace(" ", "%2C"));
                }
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "%2C");
                }
            }
            return(str);
        }
Example #3
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            string        str2;
            string        str = "";

            if (CommFunc.CheckPlayIsFS(playName))
            {
                list = new List <string>();
                for (num = 0; num < pNumberList.Count; num++)
                {
                    str2 = pNumberList[num];
                    list.Add(CommFunc.Join(str2, ",", -1));
                }
                str = CommFunc.Join(list, "|").Replace("*", "");
            }
            else if (playName.Contains("定位胆"))
            {
                char          ch    = playName[3];
                int           num2  = AppInfo.FiveDic[ch.ToString()];
                List <string> pList = new List <string>();
                for (num = 0; num < 5; num++)
                {
                    string item = "*";
                    if (num == num2)
                    {
                        item = CommFunc.Join(pNumberList, ",");
                    }
                    pList.Add(item);
                }
                str = CommFunc.Join(pList, "|").Replace("*", "");
            }
            else if (CommFunc.CheckPlayIsZuX(playName))
            {
                if (playName.Contains("复式"))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
            }
            else
            {
                list = new List <string>();
                for (num = 0; num < pNumberList.Count; num++)
                {
                    str2 = pNumberList[num];
                    list.Add(CommFunc.Join(str2, "|", -1));
                }
                str = CommFunc.Join(list, "$");
            }
            if (CommFunc.CheckPlayIsRXDS(playName))
            {
                str = this.GetRXWZString(pRXWZ) + str;
            }
            return(str);
        }
Example #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           = 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);
        }
Example #5
0
        public string GetRXWZString1(ConfigurationStatus.SCPlan plan)
        {
            string str = "";

            if (CommFunc.CheckPlayIsRXDS(plan.Play))
            {
                str = CommFunc.Join(plan.RXWZ, "%26");
                str = $"%2C%22position%22%3A%22{str}%22";
            }
            return(str);
        }
Example #6
0
        private List <int> GetRXWZList()
        {
            if (!CommFunc.CheckPlayIsRXDS(this.Play))
            {
                return(null);
            }
            List <int> list = new List <int>();

            for (int i = 0; i < this.RXWZList.Count; i++)
            {
                if (this.RXWZList[i].Checked)
                {
                    list.Add(AppInfo.FiveDic[this.RXWZList[i].Text]);
                }
            }
            return(list);
        }
Example #7
0
        public string GetRXWZString1(List <int> pRXWZ, string playName)
        {
            string str = "null";

            if (!CommFunc.CheckPlayIsRXDS(playName))
            {
                return(str);
            }
            List <string> pList = new List <string>();

            for (int i = 0; i < 5; i++)
            {
                string item = pRXWZ.Contains(i) ? "1" : "0";
                pList.Add(item);
            }
            return(CommFunc.Join(pList));
        }
Example #8
0
        public string GetRXWZString(List <int> pRXWZ, int pIndex, string playName)
        {
            string str = "";

            if (!CommFunc.CheckPlayIsRXDS(playName))
            {
                return(str);
            }
            List <string> pList = new List <string>();

            string[] strArray = new string[] { "w", "q", "b", "s", "g" };
            for (int i = 0; i < 5; i++)
            {
                if (pRXWZ.Contains(i))
                {
                    string item = $"projects%5B{pIndex}%5D%5Bposition%5D%5B%5D={strArray[i]}";
                    pList.Add(item);
                }
            }
            return(CommFunc.Join(pList, "&"));
        }
Example #9
0
        public string GetRXWZString1(List <int> pRXWZ, string playName, List <string> pBetsNumberList)
        {
            string str = "";

            if (CommFunc.CheckPlayIsRXDS(playName))
            {
                return(CommFunc.Join <int>(pRXWZ));
            }
            if (!CommFunc.CheckPlayIsRXFS(playName))
            {
                return(str);
            }
            List <int> pList = new List <int>();

            for (int i = 0; i < 5; i++)
            {
                if (pBetsNumberList[i] != "*")
                {
                    pList.Add(i);
                }
            }
            return(CommFunc.Join <int>(pList));
        }
Example #10
0
        public string GetRXWZString1(ConfigurationStatus.SCPlan plan, List <string> pNumberList)
        {
            List <int> rXWZ = plan.RXWZ;
            string     play = plan.Play;

            if (CommFunc.CheckPlayIsRXDS(play))
            {
                return(CommFunc.Join(rXWZ, ","));
            }
            if (CommFunc.CheckPlayIsRXFS(play))
            {
                List <string> pList = new List <string>();
                for (int i = 0; i < pNumberList.Count; i++)
                {
                    if (pNumberList[i] != "*")
                    {
                        pList.Add(i.ToString());
                    }
                }
                return(CommFunc.Join(pList, ","));
            }
            return(plan.PlayInfo.IndexNumString);
        }
Example #11
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            string str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                List <string> list;
                int           num;
                int           num2;
                string        str2;
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    if (CommFunc.CheckPlayIsRXFS(playName))
                    {
                        str = CommFunc.Join(pNumberList, "%2C").Replace("*", "-");
                    }
                    else
                    {
                        ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
                        list = new List <string>();
                        num  = 0;
                        for (num2 = 0; num2 < 5; num2++)
                        {
                            str2 = "*";
                            if (playInfo.IndexList.Contains(num2 + 1))
                            {
                                str2 = pNumberList[num++];
                            }
                            list.Add(str2);
                        }
                        str = CommFunc.Join(list, "%2C").Replace("*", "-");
                    }
                }
                else if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num  = AppInfo.FiveDic[ch.ToString()];
                    list = new List <string>();
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str2 = "*";
                        if (num2 == num)
                        {
                            str2 = CommFunc.Join(pNumberList);
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "%2C").Replace("*", "-");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList, "%2C");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "+");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    str = this.GetRXWZString(pRXWZ) + str;
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GP11X5)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName))
            {
                str = CommFunc.Join(pNumberList, ";");
            }
            else if (CommFunc.CheckPlayIsFS(playName))
            {
                str = CommFunc.Join(pNumberList, ",");
            }
            return(HttpUtility.UrlEncode(str));
        }
Example #12
0
 private void Cbb_PlayName_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.Ckb_WZ1.Visible = this.Ckb_WZ2.Visible = this.Ckb_WZ3.Visible = this.Ckb_WZ4.Visible = this.Ckb_WZ5.Visible = CommFunc.CheckPlayIsRXDS(this.Play);
     if (this._RunEvent)
     {
         this.RefreshNumCount();
     }
 }
Example #13
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            List <string> list2;
            int           num;
            string        str2;
            string        str3;
            string        str4;
            List <string> list4;
            string        str5;
            string        str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                List <string> list3;
                int           num2;
                ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
                list = new List <string> {
                    "w",
                    "q",
                    "b",
                    "s",
                    "g"
                };
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    list2 = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2  = pNumberList[num];
                        list3 = new List <string>();
                        foreach (char ch in str2)
                        {
                            str3 = $"{ch.ToString()}";
                            list3.Add(str3);
                        }
                        str4 = CommFunc.Join(list3, ",");
                        list2.Add(str4);
                    }
                    list4 = new List <string>();
                    List <int> indexList = playInfo.IndexList;
                    if (CommFunc.CheckPlayIsRX(playName))
                    {
                        indexList = CommFunc.ConvertIntList("1-5");
                    }
                    for (num = 0; num < list2.Count; num++)
                    {
                        num2 = indexList[num] - 1;
                        str5 = list[num2];
                        str4 = list2[num];
                        if (!str4.Contains("*"))
                        {
                            string item = $"{str5}:[{str4}]";
                            list4.Add(item);
                        }
                    }
                    str = CommFunc.Join(list4, ",");
                }
                else if (playName.Contains("定位胆"))
                {
                    list3 = new List <string>();
                    foreach (string str7 in pNumberList)
                    {
                        str3 = $"{str7.ToString()}";
                        list3.Add(str3);
                    }
                    str4 = CommFunc.Join(list3, ",");
                    num2 = playInfo.IndexList[0] - 1;
                    str5 = list[num2];
                    str  = $"{str5}:[{str4}]";
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        list3 = new List <string>();
                        foreach (string str7 in pNumberList)
                        {
                            str2 = $"{str7}";
                            list3.Add(str2);
                        }
                        str = $"zu:[{CommFunc.Join(list3, ",")}]";
                        if (CommFunc.CheckPlayIsRXDS(playName))
                        {
                            str = this.GetRXWZString(pRXWZ) + "," + str;
                        }
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                list = new List <string> {
                    "f",
                    "s",
                    "t",
                    "fo",
                    "fi",
                    "si",
                    "se",
                    "ei",
                    "ni",
                    "te"
                };
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    list2 = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = pNumberList[num];
                        str5 = list[num];
                        List <string> pList = new List <string>();
                        List <string> list8 = CommFunc.SplitString(str2, " ", -1);
                        foreach (string str8 in list8)
                        {
                            string str9 = $"{str8}";
                            pList.Add(str9);
                        }
                        str3 = CommFunc.Join(pList, ",");
                        str3 = $"{str5}:[{str3}]";
                        list2.Add(str3);
                    }
                    str = CommFunc.Join(list2, ",").Replace("*", "");
                }
                else
                {
                    int num3 = -1;
                    if (playName.Contains("冠军"))
                    {
                        num3 = 0;
                    }
                    else if (playName.Contains("亚军"))
                    {
                        num3 = 1;
                    }
                    else
                    {
                        num3 = CommFunc.GetPlayNum(playName) - 1;
                    }
                    list2 = new List <string>();
                    int num4 = (playName == "猜冠军猜冠军") ? 1 : 10;
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = pNumberList[num];
                        str3 = $"{str2}";
                        list2.Add(str3);
                    }
                    list4 = new List <string>();
                    for (num = 0; num < num4; num++)
                    {
                        str4 = "*";
                        if (num == num3)
                        {
                            str5 = list[num];
                            str4 = CommFunc.Join(list2, ",");
                            str4 = $"{str5}:[{str4}]";
                            list4.Add(str4);
                        }
                    }
                    str = CommFunc.Join(list4, ",").Replace("*", "");
                }
            }
            return(HttpUtility.UrlEncode(str));
        }
Example #14
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList            = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext           = "";
                            string        play                    = plan.Play;
                            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(play);
                            int    num   = plan.FNNumber(str4);
                            int    num2  = 2;
                            string prize = base.Prize;
                            string str8  = "";
                            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);
        }
Example #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 = "";
                            int           num           = plan.FNNumber(str4);
                            List <string> pList         = new List <string>();
                            string        pTLotteryName = this.GetPTLotteryName(plan.Type);
                            if (plan.Type == ConfigurationStatus.LotteryType.NYFFC)
                            {
                                pTLotteryName = "ZIZHUYFC";
                            }
                            else if (plan.Type == ConfigurationStatus.LotteryType.NY3FC)
                            {
                                pTLotteryName = "ZIZHUSFC";
                            }
                            else if (plan.Type == ConfigurationStatus.LotteryType.NY5FC)
                            {
                                pTLotteryName = "ZIZHUWFC";
                            }
                            pList.Add(pTLotteryName);
                            pList.Add(this.GetPlayMethodID(plan.Type, plan.Play));
                            pList.Add("2" + plan.UnitZWString);
                            pList.Add(num.ToString());
                            pList.Add(plan.AutoMoney(str4, true).ToString());
                            pList.Add(base.Prize);
                            pList.Add("undefined");
                            pList.Add(Convert.ToInt32(plan.AutoTimes(str4, true)).ToString());
                            pList.Add(this.GetBetsExpect(plan.CurrentExpect, ""));
                            pList.Add(DateAndTime.Now.ToOADate().ToString());
                            pList.Add(this.GetNumberList1(pTNumberList, plan.Play, null));
                            string rXWZString = "";
                            if (CommFunc.CheckPlayIsRXDS(plan.Play))
                            {
                                rXWZString = this.GetRXWZString(plan.RXWZ);
                            }
                            pList.Add(rXWZString + "^");
                            string str8   = CommFunc.Join(pList, "|");
                            string format = "selArr={0}&istask=no&perstop=0&moneys=0&lists=&gamekey={1}";
                            format = string.Format(format, str8, pTLotteryName);
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Example #16
0
        public string GetNumberList(ConfigurationStatus.LotteryType pType, List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            string        str2;
            int           num2;
            int           num3;
            char          ch;
            string        str = "";

            if (this.CheckLotteryIsVR(pType))
            {
                if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
                {
                    if (CommFunc.CheckPlayIsFS(playName))
                    {
                        list = new List <string>();
                        for (num = 0; num < pNumberList.Count; num++)
                        {
                            str2 = pNumberList[num];
                            list.Add(str2);
                        }
                        return(CommFunc.Join(list, ",").Replace("*", ""));
                    }
                    if (playName.Contains("定位胆"))
                    {
                        ch   = playName[3];
                        num2 = AppInfo.FiveDic[ch.ToString()];
                        list = new List <string>();
                        for (num = 0; num < 5; num++)
                        {
                            str2 = "*";
                            if (num == num2)
                            {
                                str2 = CommFunc.Join(pNumberList);
                            }
                            list.Add(str2);
                        }
                        return(CommFunc.Join(list, ",").Replace("*", ""));
                    }
                    if (!CommFunc.CheckPlayIsLH(playName) && CommFunc.CheckPlayIsZuX(playName))
                    {
                        if (playName.Contains("复式"))
                        {
                            return(CommFunc.Join(pNumberList));
                        }
                        return(CommFunc.Join(pNumberList, ","));
                    }
                    return(CommFunc.Join(pNumberList, ","));
                }
                if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
                {
                    if (CommFunc.CheckPlayIsDS(playName))
                    {
                        return(CommFunc.Join(pNumberList, ","));
                    }
                    if (CommFunc.CheckPlayIsFS(playName))
                    {
                        str = CommFunc.Join(pNumberList, " ");
                    }
                    return(str);
                }
                if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
                {
                    return(str);
                }
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, ","));
                }
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    return(CommFunc.Join(pNumberList, ",").Replace("*", ""));
                }
                num2 = -1;
                if (playName.Contains("冠军"))
                {
                    num2 = 0;
                }
                else if (playName.Contains("亚军"))
                {
                    num2 = 1;
                }
                else
                {
                    num2 = CommFunc.GetPlayNum(playName) - 1;
                }
                list = new List <string>();
                num3 = (playName == "猜冠军猜冠军") ? 1 : 10;
                for (num = 0; num < num3; num++)
                {
                    str2 = "*";
                    if (num == num2)
                    {
                        str2 = CommFunc.Join(pNumberList, " ");
                    }
                    list.Add(str2);
                }
                return(CommFunc.Join(list, ",").Replace("*", ""));
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    if (CommFunc.CheckPlayIsRXFS(playName))
                    {
                        str = CommFunc.Join(pNumberList, "%2C").Replace("*", "-");
                    }
                    else
                    {
                        ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
                        list = new List <string>();
                        num2 = 0;
                        for (num = 0; num < 5; num++)
                        {
                            str2 = "*";
                            if (playInfo.IndexList.Contains(num + 1))
                            {
                                str2 = pNumberList[num2++];
                            }
                            list.Add(str2);
                        }
                        str = CommFunc.Join(list, "%2C").Replace("*", "-");
                    }
                }
                else if (playName.Contains("定位胆"))
                {
                    ch   = playName[3];
                    num2 = AppInfo.FiveDic[ch.ToString()];
                    list = new List <string>();
                    for (num = 0; num < 5; num++)
                    {
                        str2 = "*";
                        if (num == num2)
                        {
                            str2 = CommFunc.Join(pNumberList);
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "%2C").Replace("*", "-");
                }
                else if (CommFunc.CheckPlayIsLH(playName))
                {
                    str = pNumberList[0];
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList, "%2C");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "+");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    str = this.GetRXWZString1(pType, pRXWZ) + str;
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, ";");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                return(HttpUtility.UrlEncode(str));
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, ";"));
                }
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    return(CommFunc.Join(pNumberList, ",").Replace("*", ""));
                }
                num2 = -1;
                if (playName.Contains("冠军"))
                {
                    num2 = 0;
                }
                else if (playName.Contains("亚军"))
                {
                    num2 = 1;
                }
                else
                {
                    num2 = CommFunc.GetPlayNum(playName) - 1;
                }
                if (num2 >= 5)
                {
                    num2 -= 5;
                }
                list = new List <string>();
                num3 = (playName == "猜冠军猜冠军") ? 1 : 5;
                for (num = 0; num < num3; num++)
                {
                    str2 = "*";
                    if (num == num2)
                    {
                        str2 = CommFunc.Join(pNumberList, " ");
                    }
                    list.Add(str2);
                }
                str = CommFunc.Join(list, ",").Replace("*", "-");
                if (playName == "猜冠军猜冠军")
                {
                    str = str.Replace(" ", ",");
                }
            }
            return(str);
        }
Example #17
0
        public string GetRXWZString(List <int> pRXWZ, string playName)
        {
            int    num;
            string str2;
            string str = "11111";

            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            List <string> pList = new List <string>();

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    for (num = 0; num < 5; num++)
                    {
                        str2 = pRXWZ.Contains(num) ? "1" : "0";
                        pList.Add(str2);
                    }
                    return(CommFunc.Join(pList));
                }
                if (CommFunc.CheckPlayIsRXFS(playName))
                {
                    switch (playInfo.IndexList.Count)
                    {
                    case 2:
                        return("00011");

                    case 3:
                        return("00111");

                    case 4:
                        str = "01111";
                        break;
                    }
                    return(str);
                }
                if (playName.Contains("定位胆"))
                {
                    return("11111");
                }
                for (num = 0; num < 5; num++)
                {
                    str2 = playInfo.IndexList.Contains(num + 1) ? "1" : "0";
                    pList.Add(str2);
                }
                return(CommFunc.Join(pList));
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    for (num = 0; num < 5; num++)
                    {
                        str2 = playInfo.IndexList.Contains(num + 1) ? "1" : "0";
                        pList.Add(str2);
                    }
                    return(CommFunc.Join(pList));
                }
                return("11111");
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName) || CommFunc.CheckPlayIsFS(playName))
            {
                for (num = 0; num < 10; num++)
                {
                    str2 = playInfo.IndexList.Contains(num + 1) ? "1" : "0";
                    pList.Add(str2);
                }
                return(CommFunc.Join(pList));
            }
            if (playName == "猜冠军猜冠军")
            {
                return("1000000000");
            }
            return((CommFunc.GetPlayNum(playName) > 5) ? "0000011111" : "1111100000");
        }
Example #18
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            int           num;
            List <string> list;
            int           num2;
            string        str2;
            string        str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "%2C").Replace("*", "");
                }
                else if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num  = AppInfo.FiveDic[ch.ToString()];
                    list = new List <string>();
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str2 = "*";
                        if (num2 == num)
                        {
                            str2 = CommFunc.Join(pNumberList);
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "%2C").Replace("*", "");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList);
                    }
                    else
                    {
                        str = CommFunc.Join(pNumberList, "%24");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "%24");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    str = this.GetRXWZString(pRXWZ) + str;
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, "%24").Replace(" ", "%2C"));
                }
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "%2C");
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName))
            {
                str = CommFunc.Join(pNumberList, "$").Replace(" ", ",");
            }
            else if (CommFunc.CheckPlayIsFS(playName))
            {
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    string pStr = pNumberList[num2];
                    str2 = CommFunc.Join(CommFunc.ConvertPK10CodeToBets(CommFunc.SplitString(pStr, " ", -1), -1), ",");
                    list.Add(str2);
                }
                str = CommFunc.Join(list, "-").Replace("*", "");
            }
            else
            {
                num = -1;
                if (playName.Contains("冠军"))
                {
                    num = 0;
                }
                else if (playName.Contains("亚军"))
                {
                    num = 1;
                }
                else
                {
                    num = CommFunc.GetPlayNum(playName) - 1;
                }
                list = new List <string>();
                int num3 = (playName == "猜冠军猜冠军") ? 1 : 10;
                pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                for (num2 = 0; num2 < num3; num2++)
                {
                    str2 = "*";
                    if (num2 == num)
                    {
                        str2 = CommFunc.Join(pNumberList, ",");
                    }
                    list.Add(str2);
                }
                str = CommFunc.Join(list, "-").Replace("*", "");
            }
            return(HttpUtility.UrlEncode(str));
        }
Example #19
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            int           num2;
            string        str2;
            string        str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
                    list = new List <string>();
                    num  = 0;
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str2 = "*";
                        if (playInfo.IndexList.Contains(num2 + 1))
                        {
                            str2 = pNumberList[num++];
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, ",").Replace("*", "-");
                }
                else if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num  = AppInfo.FiveDic[ch.ToString()];
                    list = new List <string>();
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str2 = "*";
                        if (num2 == num)
                        {
                            str2 = CommFunc.Join(pNumberList);
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, ",").Replace("*", "-");
                }
                else if (CommFunc.CheckPlayIsLH(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList, ",");
                    }
                }
                else if (CommFunc.CheckPlayIsRX(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                else
                {
                    str = CommFunc.Join(pNumberList, " ");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    str = this.GetRXWZString(pRXWZ) + str;
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, ";"));
                }
                return(CommFunc.Join(pNumberList, ","));
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, ";"));
                }
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    return(CommFunc.Join(pNumberList, ",").Replace("*", ""));
                }
                num = -1;
                if (playName.Contains("冠军"))
                {
                    num = 0;
                }
                else if (playName.Contains("亚军"))
                {
                    num = 1;
                }
                else
                {
                    num = CommFunc.GetPlayNum(playName) - 1;
                }
                if (num >= 5)
                {
                    num -= 5;
                }
                list = new List <string>();
                int num3 = (playName == "猜冠军猜冠军") ? 1 : 5;
                for (num2 = 0; num2 < num3; num2++)
                {
                    str2 = "*";
                    if (num2 == num)
                    {
                        str2 = CommFunc.Join(pNumberList, " ");
                    }
                    list.Add(str2);
                }
                str = CommFunc.Join(list, ",").Replace("*", "-");
                if (playName == "猜冠军猜冠军")
                {
                    str = str.Replace(" ", ",");
                }
            }
            return(str);
        }
Example #20
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            string        str2;
            int           num2;
            string        str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    list = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = CommFunc.Join(pNumberList[num], ",", -1);
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "|").Replace("*", "");
                }
                else if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num2 = AppInfo.FiveDic[ch.ToString()];
                    list = new List <string>();
                    for (num = 0; num < 5; num++)
                    {
                        str2 = "*";
                        if (num == num2)
                        {
                            str2 = CommFunc.Join(pNumberList, ",");
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "|");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList, ",");
                    }
                    else
                    {
                        list = new List <string>();
                        for (num = 0; num < pNumberList.Count; num++)
                        {
                            str2 = CommFunc.Join(pNumberList[num], ",", -1);
                            list.Add(str2);
                        }
                        str = CommFunc.Join(list, " ");
                    }
                }
                else if (playName.Contains("五星直选单式"))
                {
                    str = CommFunc.Join(pNumberList, " ");
                }
                else if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    list = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = CommFunc.Join(pNumberList[num], ",", -1);
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, " ");
                }
                else
                {
                    list = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = CommFunc.Join(pNumberList[num], "|", -1);
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, " ");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    str = str + this.GetRXWZString(pRXWZ);
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    if (playName.Contains("任"))
                    {
                        list = new List <string>();
                        for (num = 0; num < pNumberList.Count; num++)
                        {
                            str2 = pNumberList[num].Replace(" ", ",");
                            list.Add(str2);
                        }
                        str = CommFunc.Join(list, " ");
                    }
                    else
                    {
                        list = new List <string>();
                        for (num = 0; num < pNumberList.Count; num++)
                        {
                            str2 = pNumberList[num].Replace(" ", "|");
                            list.Add(str2);
                        }
                        str = CommFunc.Join(list, " ");
                    }
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    list = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = pNumberList[num].Replace(" ", "|");
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, " ");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    list = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = pNumberList[num].Replace(" ", ",");
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "|").Replace("*", "");
                }
                else
                {
                    num2 = -1;
                    if (playName.Contains("冠军"))
                    {
                        num2 = 0;
                    }
                    else if (playName.Contains("亚军"))
                    {
                        num2 = 1;
                    }
                    else
                    {
                        num2 = CommFunc.GetPlayNum(playName) - 1;
                    }
                    if (num2 >= 5)
                    {
                        num2 -= 5;
                    }
                    list = new List <string>();
                    int num3 = (playName == "猜冠军猜冠军") ? 1 : 5;
                    for (num = 0; num < num3; num++)
                    {
                        str2 = "*";
                        if (num == num2)
                        {
                            str2 = CommFunc.Join(pNumberList, ",");
                        }
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, "|");
                }
            }
            return(HttpUtility.UrlEncode(str));
        }
Example #21
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            string        str2;
            int           num2;
            string        pSource = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    list = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        str2 = CommFunc.Join(pNumberList[num], ",", -1);
                        list.Add(str2);
                    }
                    pSource = CommFunc.Join(list, "|").Replace("*", "");
                }
                else if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num2 = AppInfo.FiveDic[ch.ToString()];
                    list = new List <string>();
                    for (num = 0; num < 5; num++)
                    {
                        str2 = "*";
                        if (num == num2)
                        {
                            str2 = CommFunc.Join(pNumberList, ",");
                        }
                        list.Add(str2);
                    }
                    pSource = CommFunc.Join(list, "|").Replace("*", "");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        pSource = CommFunc.Join(pNumberList, ",");
                    }
                }
                else
                {
                    pSource = CommFunc.Join(pNumberList, ",");
                }
                if (CommFunc.CheckPlayIsRXDS(playName))
                {
                    pSource = this.GetRXWZString(pRXWZ) + pSource;
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    pSource = CommFunc.Join(pNumberList, ",").Replace(" ", "");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    pSource = CommFunc.Join(pNumberList, ",");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    pSource = CommFunc.Join(pNumberList, ";");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    pSource = CommFunc.Join(pNumberList, "|").Replace(" ", ",").Replace("*", "");
                }
                else
                {
                    num2 = -1;
                    if (playName.Contains("冠军"))
                    {
                        num2 = 0;
                    }
                    else if (playName.Contains("亚军"))
                    {
                        num2 = 1;
                    }
                    else
                    {
                        num2 = CommFunc.GetPlayNum(playName) - 1;
                    }
                    list = new List <string>();
                    int num3 = (playName == "猜冠军猜冠军") ? 1 : 10;
                    pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                    for (num = 0; num < num3; num++)
                    {
                        str2 = "*";
                        if (num == num2)
                        {
                            str2 = CommFunc.Join(pNumberList, ",");
                        }
                        list.Add(str2);
                    }
                    pSource = CommFunc.Join(list, "|").Replace("*", "");
                }
            }
            return(CommFunc.LZMAEncode(pSource));
        }
Example #22
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = Convert.ToInt32(plan.AutoTimes(str4, true));
                            int           num2          = plan.FNNumber(str4);
                            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);
        }
Example #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
                        {
                            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);
        }