Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            string        str3;

            if (CommFunc.CheckPlayIsFS(playName))
            {
                list = new List <string>();
                for (num = 0; num < pNumberList.Count; num++)
                {
                    string pStr = pNumberList[num];
                    str3 = CommFunc.Join(pStr, "%26", -1);
                    list.Add(str3);
                }
                return(CommFunc.Join(list, "%7C").Replace("*", ""));
            }
            if (playName.Contains("定位胆"))
            {
                char ch   = playName[3];
                int  num2 = AppInfo.FiveDic[ch.ToString()];
                list = new List <string>();
                for (num = 0; num < 5; num++)
                {
                    str3 = "*";
                    if (num == num2)
                    {
                        str3 = CommFunc.Join(pNumberList, "%26");
                    }
                    list.Add(str3);
                }
                return(CommFunc.Join(list, "%7C").Replace("*", ""));
            }
            return(CommFunc.Join(pNumberList, "%26"));
        }
Exemplo n.º 3
0
 public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
 {
     if (CommFunc.CheckPlayIsFS(playName))
     {
         return(CommFunc.Join(pNumberList, ",").Replace("*", ""));
     }
     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);
         }
         return(CommFunc.Join(pList, ",").Replace("*", ""));
     }
     if (CommFunc.CheckPlayIsZuX(playName))
     {
         if (playName.Contains("复式"))
         {
             return(CommFunc.Join(pNumberList));
         }
         return(CommFunc.Join(pNumberList, ","));
     }
     return(CommFunc.Join(pNumberList, ","));
 }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
0
        public string GetRXWZString1(List <int> pRXWZ, string playName)
        {
            string str = "";

            if (!CommFunc.CheckPlayIsRX(playName))
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                pRXWZ = CommFunc.ConvertIntList("0-4");
            }
            List <string> pList = new List <string>();

            foreach (int num in pRXWZ)
            {
                string item = $"orders%5B0%5D%5Bpositions%5D%5B%5D={num}";
                pList.Add(item);
            }
            return(CommFunc.Join(pList, "&"));
        }
Exemplo n.º 6
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));
        }
Exemplo n.º 7
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);
        }
Exemplo n.º 8
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));
        }
Exemplo n.º 9
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));
        }
Exemplo n.º 10
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));
        }
Exemplo n.º 11
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num2;
            string        current;
            List <string> list2;
            string        str3;
            int           num3;
            List <string> list3;
            string        str4;
            List <string> list5;
            string        str   = "";
            int           count = CommFunc.GetPlayInfo(playName).IndexList.Count;

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    list = new List <string>();
                    for (num2 = 0; num2 < pNumberList.Count; num2++)
                    {
                        current = pNumberList[num2];
                        list2   = new List <string>();
                        foreach (char ch in current)
                        {
                            str3 = $"\"{ch.ToString()}\"";
                            list2.Add(str3);
                        }
                        current = CommFunc.Join(list2, ",");
                        current = $"[{current}]";
                        list.Add(current);
                    }
                    str = CommFunc.Join(list, ",").Replace("*", "[]");
                    return($"[{str}]");
                }
                if (playName.Contains("定位胆"))
                {
                    char ch2 = playName[3];
                    num3  = AppInfo.FiveDic[ch2.ToString()];
                    list3 = new List <string>();
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str4 = "*";
                        if (num2 == num3)
                        {
                            list2 = new List <string>();
                            foreach (string str5 in pNumberList)
                            {
                                str3 = $"\"{str5}\"";
                                list2.Add(str3);
                            }
                            str4 = CommFunc.Join(list2, ",");
                            str4 = $"[{str4}]";
                        }
                        list3.Add(str4);
                    }
                    str = CommFunc.Join(list3, ",").Replace("*", "[]");
                    return($"[{str}]");
                }
                if (CommFunc.CheckPlayIsLH(playName))
                {
                    List <string> pList = new List <string>();
                    using (List <string> .Enumerator enumerator = pNumberList.GetEnumerator())
                    {
                        while (enumerator.MoveNext())
                        {
                            current = enumerator.Current;
                            string str6 = "";
                            if (current == "龙")
                            {
                                str6 = "dragon";
                            }
                            else if (current == "虎")
                            {
                                str6 = "tiger";
                            }
                            else if (current == "和")
                            {
                                str6 = "tie";
                            }
                            str6 = $"\"{str6}\"";
                            pList.Add(str6);
                        }
                    }
                    return($"[[{CommFunc.Join(pList, ",")}],[]]");
                }
                if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        list2 = new List <string>();
                        foreach (string str5 in pNumberList)
                        {
                            str3 = $"\"{str5}\"";
                            list2.Add(str3);
                        }
                        str = CommFunc.Join(list2, ",");
                        str = $"[[{str}]]";
                        if (CommFunc.CheckPlayIsRX(playName))
                        {
                            str = this.GetRXWZString(pRXWZ) + str;
                            str = $"[{str}]";
                        }
                        return(str);
                    }
                    list = new List <string>();
                    for (num2 = 0; num2 < pNumberList.Count; num2++)
                    {
                        current = pNumberList[num2];
                        list2   = new List <string>();
                        foreach (char ch in current)
                        {
                            str3 = $"\"{ch.ToString()}\"";
                            list2.Add(str3);
                        }
                        current = CommFunc.Join(list2, ",");
                        current = $"[{current}]";
                        list.Add(current);
                    }
                    str = CommFunc.Join(list, ",");
                    str = $"[{str}]";
                    if (CommFunc.CheckPlayIsRX(playName))
                    {
                        str = this.GetRXWZString(pRXWZ) + str;
                        str = $"[{str}]";
                    }
                    return(str);
                }
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    current = pNumberList[num2];
                    list2   = new List <string>();
                    foreach (char ch in current)
                    {
                        str3 = $"\"{ch.ToString()}\"";
                        list2.Add(str3);
                    }
                    current = CommFunc.Join(list2, ",");
                    current = $"[{current}]";
                    list.Add(current);
                }
                str = CommFunc.Join(list, ",");
                str = $"[{str}]";
                if (CommFunc.CheckPlayIsRX(playName))
                {
                    str = this.GetRXWZString(pRXWZ) + str;
                    str = $"[{str}]";
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    list = new List <string>();
                    for (num2 = 0; num2 < pNumberList.Count; num2++)
                    {
                        current = pNumberList[num2];
                        list5   = CommFunc.SplitString(current, " ", -1);
                        list2   = new List <string>();
                        foreach (string str5 in list5)
                        {
                            str3 = $"\"{str5}\"";
                            list2.Add(str3);
                        }
                        current = CommFunc.Join(list2, ",");
                        current = $"[{current}]";
                        list.Add(current);
                    }
                    str = CommFunc.Join(list, ",");
                    return($"[{str}]");
                }
                if (!CommFunc.CheckPlayIsFS(playName))
                {
                    return(str);
                }
                list2 = new List <string>();
                foreach (string str5 in pNumberList)
                {
                    str3 = $"\"{str5}\"";
                    list2.Add(str3);
                }
                str = CommFunc.Join(list2, ",");
                return($"[[{str}]]");
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName))
            {
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    current = pNumberList[num2];
                    list5   = CommFunc.SplitString(current, " ", -1);
                    list2   = new List <string>();
                    foreach (string str5 in list5)
                    {
                        str3 = $"\"{str5}\"";
                        list2.Add(str3);
                    }
                    current = CommFunc.Join(list2, ",");
                    current = $"[{current}]";
                    list.Add(current);
                }
                str = CommFunc.Join(list, ",");
                return($"[{str}]");
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    current = pNumberList[num2];
                    list5   = CommFunc.SplitString(current, " ", -1);
                    list2   = new List <string>();
                    foreach (string str5 in list5)
                    {
                        str3 = $"\"{str5}\"";
                        list2.Add(str3);
                    }
                    current = CommFunc.Join(list2, ",");
                    current = $"[{current}]";
                    list.Add(current);
                }
                str = CommFunc.Join(list, ",").Replace("*", "[]");
                return($"[{str}]");
            }
            num3 = -1;
            if (playName.Contains("冠军"))
            {
                num3 = 0;
            }
            else if (playName.Contains("亚军"))
            {
                num3 = 1;
            }
            else
            {
                num3 = CommFunc.GetPlayNum(playName) - 1;
            }
            if (num3 >= 5)
            {
                num3 -= 5;
            }
            list3 = new List <string>();
            int num4 = (playName == "猜冠军猜冠军") ? 1 : 5;

            for (num2 = 0; num2 < num4; num2++)
            {
                str4 = "*";
                if (num2 == num3)
                {
                    list2 = new List <string>();
                    foreach (string str5 in pNumberList)
                    {
                        str3 = $"\"{str5}\"";
                        list2.Add(str3);
                    }
                    str4 = CommFunc.Join(list2, ",");
                    str4 = $"[{str4}]";
                }
                list3.Add(str4);
            }
            str = CommFunc.Join(list3, ",").Replace("*", "[]");
            return($"[{str}]");
        }
Exemplo n.º 12
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))
                {
                    return(CommFunc.Join(pNumberList, "|").Replace("*", ""));
                }
                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);
                    }
                    return(CommFunc.Join(list, "|").Replace("*", ""));
                }
                if (CommFunc.CheckPlayIsLH(playName))
                {
                    List <string> pList = new List <string>();
                    foreach (string str3 in pNumberList)
                    {
                        pList.Add((AppInfo.LHDic[str3] - 1).ToString());
                    }
                    return(CommFunc.Join(pList));
                }
                if (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))
            {
                pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                return(CommFunc.Join(pNumberList, "|").Replace("*", ""));
            }
            pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
            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;

            for (num2 = 0; num2 < num3; num2++)
            {
                str2 = "*";
                if (num2 == num)
                {
                    str2 = CommFunc.Join(pNumberList, " ");
                }
                list.Add(str2);
            }
            return(CommFunc.Join(list, "|").Replace("*", ""));
        }
Exemplo n.º 13
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            int           num;
            int           num2;
            List <string> list2;
            string        str3;
            string        str = "";

            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    List <string> pList = new List <string>();
                    num = 0;
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        if (playInfo.IndexList.Contains(num2 + 1) || CommFunc.CheckPlayIsRXFS(playName))
                        {
                            string pStr = pNumberList[num++];
                            pList.Add(CommFunc.Join(pStr, "-", -1));
                        }
                        else
                        {
                            pList.Add("*");
                        }
                    }
                    str = CommFunc.Join(pList, "_").Replace("*", "");
                }
                else if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num   = AppInfo.FiveDic[ch.ToString()];
                    list2 = new List <string>();
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str3 = "*";
                        if (num2 == num)
                        {
                            str3 = CommFunc.Join(pNumberList, "-");
                        }
                        list2.Add(str3);
                    }
                    str = CommFunc.Join(list2, "_").Replace("*", "");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = "____" + CommFunc.Join(pNumberList, "-");
                    }
                    else
                    {
                        str = CommFunc.Join(pNumberList, "%7C");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "%7C");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, "%7C").Replace(" ", "");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = "____" + CommFunc.Join(pNumberList, "-");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, "%7C").Replace(" ", "");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                    str         = CommFunc.Join(pNumberList, "_").Replace(" ", "-");
                    int totalWidth = 5 - playInfo.IndexList.Count;
                    str = (str + "_".PadLeft(totalWidth, '_')).Replace("*", "");
                }
                else
                {
                    pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                    num         = -1;
                    if (playName.Contains("冠军"))
                    {
                        num = 0;
                    }
                    else if (playName.Contains("亚军"))
                    {
                        num = 1;
                    }
                    else
                    {
                        num = CommFunc.GetPlayNum(playName) - 1;
                    }
                    list2 = new List <string>();
                    int num4 = (playName == "猜冠军猜冠军") ? 1 : 10;
                    for (num2 = 0; num2 < num4; num2++)
                    {
                        str3 = "*";
                        if (num2 == num)
                        {
                            str3 = CommFunc.Join(pNumberList, "-");
                        }
                        list2.Add(str3);
                    }
                    str = CommFunc.Join(list2, "_").Replace("*", "");
                    if (playName == "猜冠军猜冠军")
                    {
                        str = "____" + str;
                    }
                }
            }
            return(HttpUtility.UrlEncode(str));
        }
Exemplo n.º 14
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            string str = "";

            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                List <string> list5;
                int           num3;
                string        str4;
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    return(CommFunc.Join(pNumberList, "_").Replace("*", "#"));
                }
                if (playName.Contains("定位胆"))
                {
                    return(CommFunc.Join(pNumberList).Replace("*", ""));
                }
                if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList);
                    }
                    if (CommFunc.CheckPlayIsRX(playName))
                    {
                        str = this.GetRXWZString(pRXWZ) + str;
                    }
                    return(str);
                }
                if (CommFunc.CheckPlayIsRX(playName))
                {
                    int           count = playInfo.IndexList.Count;
                    List <string> list2 = CommFunc.GetCombinations(CommFunc.ConvertIntToStrList(pRXWZ), count, "");
                    List <string> pList = new List <string>();
                    for (int i = 0; i < list2.Count; i++)
                    {
                        List <int> list4 = CommFunc.ConvertSameListInt(list2[i]);
                        list5 = new List <string>();
                        num3  = 0;
                        while (num3 < pNumberList.Count)
                        {
                            string        str2  = pNumberList[num3];
                            List <string> list6 = new List <string>();
                            int           num4  = 0;
                            for (int j = 0; j < 5; j++)
                            {
                                string str3 = "#";
                                if (list4.Contains(j))
                                {
                                    str3 = str2[num4++].ToString();
                                }
                                list6.Add(str3);
                            }
                            str4 = CommFunc.Join(list6, "_");
                            list5.Add(str4);
                            num3++;
                        }
                        string item = CommFunc.Join(list5, ",");
                        pList.Add(item);
                    }
                    return(CommFunc.Join(pList, ","));
                }
                list5 = new List <string>();
                for (num3 = 0; num3 < pNumberList.Count; num3++)
                {
                    str4 = pNumberList[num3];
                    str4 = CommFunc.Join(str4, "_", -1);
                    list5.Add(str4);
                }
                return(CommFunc.Join(list5, ","));
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, ",").Replace(" ", "_"));
                }
                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, ",").Replace(" ", "_"));
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                return(CommFunc.Join(pNumberList, "_").Replace(" ", "-").Replace("*", ""));
            }
            return(CommFunc.Join(pNumberList, "-").Replace("*", ""));
        }
Exemplo n.º 15
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);
        }
Exemplo n.º 16
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            int           num;
            int           num2;
            List <string> list2;
            string        str4;
            string        str = "";

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    List <string> pList = new List <string>();
                    for (num = 0; num < pNumberList.Count; num++)
                    {
                        string str2 = CommFunc.Join(pNumberList[num], ",", -1);
                        if (CommFunc.CheckPlayIsRXFS(playName))
                        {
                            if (str2 == "*")
                            {
                                continue;
                            }
                            string str3 = AppInfo.IndexDic[num];
                            str2 = $"{str3}位:{str2}";
                        }
                        pList.Add(str2);
                    }
                    return(CommFunc.Join(pList, "|").Replace("*", ""));
                }
                if (playName.Contains("定位胆"))
                {
                    char ch = playName[3];
                    num2  = AppInfo.FiveDic[ch.ToString()];
                    list2 = new List <string>();
                    for (num = 0; num < 5; num++)
                    {
                        str4 = "*";
                        if (num == num2)
                        {
                            str4 = CommFunc.Join(pNumberList, ",");
                        }
                        list2.Add(str4);
                    }
                    return(CommFunc.Join(list2, "|").Replace("*", ""));
                }
                if (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))
                {
                    str = CommFunc.Join(pNumberList, ",").Replace(" ", "");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                return(HttpUtility.UrlEncode(str));
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName))
            {
                return(CommFunc.Join(pNumberList, ",").Replace(" ", ""));
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                list2 = new List <string>();
                for (num = 0; num < pNumberList.Count; num++)
                {
                    str4 = pNumberList[num].Replace(" ", ",");
                    list2.Add(str4);
                }
                return(CommFunc.Join(list2, "|").Replace("*", ""));
            }
            num2 = -1;
            if (playName.Contains("冠军"))
            {
                num2 = 0;
            }
            else if (playName.Contains("亚军"))
            {
                num2 = 1;
            }
            else
            {
                num2 = CommFunc.GetPlayNum(playName) - 1;
            }
            list2 = new List <string>();
            int num3 = (playName == "猜冠军猜冠军") ? 1 : 10;

            for (num = 0; num < num3; num++)
            {
                str4 = "*";
                if (num == num2)
                {
                    str4 = CommFunc.Join(pNumberList, ",");
                }
                list2.Add(str4);
            }
            return(CommFunc.Join(list2, "|").Replace("*", ""));
        }
Exemplo n.º 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");
        }
Exemplo n.º 18
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 = pNumberList[num];
                        list.Add(str2);
                    }
                    return(CommFunc.Join(list, ",").Replace("*", ""));
                }
                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);
                    }
                    return(CommFunc.Join(list, ",").Replace("*", ""));
                }
                if (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("*", ""));
            }
            if (CommFunc.CheckPlayIsHZ(playName))
            {
                return(CommFunc.Join(pNumberList, ","));
            }
            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;

            for (num = 0; num < num3; num++)
            {
                str2 = "*";
                if (num == num2)
                {
                    str2 = CommFunc.Join(pNumberList, " ");
                }
                list.Add(str2);
            }
            return(CommFunc.Join(list, ",").Replace("*", ""));
        }
Exemplo n.º 19
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))
                {
                    List <string> pList = new List <string>();
                    for (int i = 0; i < pNumberList.Count; i++)
                    {
                        string item = CommFunc.Join(pNumberList[i], ",", -1);
                        pList.Add(item);
                    }
                    str = CommFunc.Join(pList, "|").Replace("*", "");
                }
                else if (playName.Contains("定位胆"))
                {
                    str = CommFunc.Join(pNumberList, "|").Replace("*", "");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList, "|");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "_");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, "_").Replace(" ", "");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "|");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, "_").Replace(" ", "");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "|").Replace(" ", ",").Replace("*", "");
                }
                else
                {
                    str = CommFunc.Join(pNumberList, "|").Replace("*", "");
                    if (playName == "猜冠军猜冠军")
                    {
                        str = str.Replace("|", ",");
                    }
                }
            }
            return(HttpUtility.UrlEncode(str));
        }
Exemplo n.º 20
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num;
            string        str3;
            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++)
                    {
                        string pStr = pNumberList[num];
                        str3 = CommFunc.Join(pStr, "&", -1);
                        list.Add(str3);
                    }
                    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++)
                    {
                        str3 = "*";
                        if (num == num2)
                        {
                            str3 = CommFunc.Join(pNumberList, "&");
                        }
                        list.Add(str3);
                    }
                    str = CommFunc.Join(list, "|").Replace("*", "");
                }
                else if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList, "&");
                    }
                    else
                    {
                        str = CommFunc.Join(pNumberList, ",");
                    }
                }
                else
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
            }
            else 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, "&");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = 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;
                    }
                    if (num2 >= 5)
                    {
                        num2 -= 5;
                    }
                    list = new List <string>();
                    int num3 = (playName == "猜冠军猜冠军") ? 1 : 5;
                    for (num = 0; num < num3; num++)
                    {
                        str3 = "*";
                        if (num == num2)
                        {
                            str3 = CommFunc.Join(pNumberList, "&");
                        }
                        list.Add(str3);
                    }
                    str = CommFunc.Join(list, "|").Replace("*", "");
                    if (playName == "猜冠军猜冠军")
                    {
                        str = str.Replace(" ", ",");
                    }
                }
            }
            return(HttpUtility.UrlEncode(str));
        }
Exemplo n.º 21
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            List <string> list;
            int           num2;
            string        str2;
            List <string> list2;
            string        str3;
            int           num3;
            List <string> list3;
            string        str4;
            List <string> list4;
            string        str   = "";
            int           count = CommFunc.GetPlayInfo(playName).IndexList.Count;

            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    list = new List <string>();
                    for (num2 = 0; num2 < pNumberList.Count; num2++)
                    {
                        str2  = pNumberList[num2];
                        list2 = new List <string>();
                        foreach (char ch in str2)
                        {
                            str3 = $"\"{ch.ToString()}\"";
                            list2.Add(str3);
                        }
                        str2 = CommFunc.Join(list2, ",");
                        str2 = $"[{str2}]";
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, ",").Replace("*", "[]");
                    return($"[{str}]");
                }
                if (playName.Contains("定位胆"))
                {
                    char ch2 = playName[3];
                    num3  = AppInfo.FiveDic[ch2.ToString()];
                    list3 = new List <string>();
                    for (num2 = 0; num2 < 5; num2++)
                    {
                        str4 = "*";
                        if (num2 == num3)
                        {
                            list2 = new List <string>();
                            foreach (string str5 in pNumberList)
                            {
                                str3 = $"\"{str5}\"";
                                list2.Add(str3);
                            }
                            str4 = CommFunc.Join(list2, ",");
                            str4 = $"[{str4}]";
                        }
                        list3.Add(str4);
                    }
                    str = CommFunc.Join(list3, ",").Replace("*", "[]");
                    return($"[{str}]");
                }
                if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        list2 = new List <string>();
                        foreach (string str5 in pNumberList)
                        {
                            str3 = $"\"{str5}\"";
                            list2.Add(str3);
                        }
                        str = CommFunc.Join(list2, ",");
                        str = $"[[{str}]]";
                        if (CommFunc.CheckPlayIsRX(playName))
                        {
                            str = this.GetRXWZString(pRXWZ) + str;
                            str = $"[{str}]";
                        }
                        return(str);
                    }
                    list = new List <string>();
                    for (num2 = 0; num2 < pNumberList.Count; num2++)
                    {
                        str2  = pNumberList[num2];
                        list2 = new List <string>();
                        foreach (char ch in str2)
                        {
                            str3 = $"\"{ch.ToString()}\"";
                            list2.Add(str3);
                        }
                        str2 = CommFunc.Join(list2, ",");
                        str2 = $"[{str2}]";
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, ",");
                    str = $"[{str}]";
                    if (CommFunc.CheckPlayIsRX(playName))
                    {
                        str = this.GetRXWZString(pRXWZ) + str;
                        str = $"[{str}]";
                    }
                    return(str);
                }
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    str2  = pNumberList[num2];
                    list2 = new List <string>();
                    foreach (char ch in str2)
                    {
                        str3 = $"\"{ch.ToString()}\"";
                        list2.Add(str3);
                    }
                    str2 = CommFunc.Join(list2, ",");
                    str2 = $"[{str2}]";
                    list.Add(str2);
                }
                str = CommFunc.Join(list, ",");
                str = $"[{str}]";
                if (CommFunc.CheckPlayIsRX(playName))
                {
                    str = this.GetRXWZString(pRXWZ) + str;
                    str = $"[{str}]";
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    list = new List <string>();
                    for (num2 = 0; num2 < pNumberList.Count; num2++)
                    {
                        str2  = pNumberList[num2];
                        list4 = CommFunc.SplitString(str2, " ", -1);
                        list2 = new List <string>();
                        foreach (string str5 in list4)
                        {
                            str3 = $"\"{str5}\"";
                            list2.Add(str3);
                        }
                        str2 = CommFunc.Join(list2, ",");
                        str2 = $"[{str2}]";
                        list.Add(str2);
                    }
                    str = CommFunc.Join(list, ",");
                    return($"[{str}]");
                }
                if (!CommFunc.CheckPlayIsFS(playName))
                {
                    return(str);
                }
                list2 = new List <string>();
                foreach (string str5 in pNumberList)
                {
                    str3 = $"\"{str5}\"";
                    list2.Add(str3);
                }
                str = CommFunc.Join(list2, ",");
                return($"[[{str}]]");
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName))
            {
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    str2  = pNumberList[num2];
                    list4 = CommFunc.SplitString(str2, " ", -1);
                    list2 = new List <string>();
                    foreach (string str5 in list4)
                    {
                        str3 = $"\"{str5}\"";
                        list2.Add(str3);
                    }
                    str2 = CommFunc.Join(list2, ",");
                    str2 = $"[{str2}]";
                    list.Add(str2);
                }
                str = CommFunc.Join(list, ",");
                return($"[{str}]");
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                list = new List <string>();
                for (num2 = 0; num2 < pNumberList.Count; num2++)
                {
                    str2  = pNumberList[num2];
                    list4 = CommFunc.SplitString(str2, " ", -1);
                    list2 = new List <string>();
                    foreach (string str5 in list4)
                    {
                        str3 = $"\"{str5}\"";
                        list2.Add(str3);
                    }
                    str2 = CommFunc.Join(list2, ",");
                    str2 = $"[{str2}]";
                    list.Add(str2);
                }
                str = CommFunc.Join(list, ",").Replace("*", "[]");
                return($"[{str}]");
            }
            num3 = -1;
            if (playName.Contains("冠军"))
            {
                num3 = 0;
            }
            else if (playName.Contains("亚军"))
            {
                num3 = 1;
            }
            else
            {
                num3 = CommFunc.GetPlayNum(playName) - 1;
            }
            if (num3 >= 5)
            {
                num3 -= 5;
            }
            list3 = new List <string>();
            int num4 = (playName == "猜冠军猜冠军") ? 1 : 5;

            for (num2 = 0; num2 < num4; num2++)
            {
                str4 = "*";
                if (num2 == num3)
                {
                    list2 = new List <string>();
                    foreach (string str5 in pNumberList)
                    {
                        str3 = $"\"{str5}\"";
                        list2.Add(str3);
                    }
                    str4 = CommFunc.Join(list2, ",");
                    str4 = $"[{str4}]";
                }
                list3.Add(str4);
            }
            str = CommFunc.Join(list3, ",").Replace("*", "[]");
            return($"[{str}]");
        }