Пример #1
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));
        }
Пример #2
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.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);
            }
            pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, 1);
            if (CommFunc.CheckPlayIsDS(playName))
            {
                return(CommFunc.Join(pNumberList, "|").Replace(" ", ""));
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                return(CommFunc.Join(pNumberList, "|").Replace(" ", "").Replace("*", ""));
            }
            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("*", ""));
        }
Пример #3
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 = "";

            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            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.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))
                {
                    str = CommFunc.Join(pNumberList, ",").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, ",").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))
                {
                    pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                    str         = CommFunc.Join(pNumberList, ",");
                }
            }
            else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
            {
                pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    str = CommFunc.Join(pNumberList, ",");
                }
                else if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, " ,").Replace("*", "");
                }
                else
                {
                    pNumberList = CommFunc.ConvertPK10CodeToBets(pNumberList, -1);
                    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);
                    }
                    str = CommFunc.Join(list, ",").Replace("*", "");
                    if (playName == "猜冠军猜冠军")
                    {
                        str = str.Replace(" ", ",");
                    }
                }
            }
            return(HttpUtility.UrlEncode(str));
        }
Пример #4
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));
        }
Пример #5
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));
        }