Exemplo n.º 1
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.º 2
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));
        }