示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();
            agent_userinfo_session model = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;

            if (!model.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
            }
            base.Permission_Aspx_ZJ(model, "po_3_1");
            if (base.IsChildSync())
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100080&url=&issuccess=1&isback=0");
            }
            string       s          = LSRequest.qq("pid");
            string       str3       = "/LotteryPeriod/AwardPeriod.aspx?lid=100";
            cz_phase_six phaseModel = CallBLL.cz_phase_six_bll.GetPhaseModel(int.Parse(s));

            if (!phaseModel.get_is_closed().Equals(1))
            {
                base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100070&url={0}&issuccess=1&isback=1", base.Server.UrlDecode(str3)));
            }
            if (!phaseModel.get_is_payment().Equals(1))
            {
                base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100070&url={0}&issuccess=1&isback=1", base.Server.UrlDecode(str3)));
            }
            if (CallBLL.cz_phase_six_bll.OpenData(s))
            {
                string str4 = null;
                if (model.get_users_child_session() != null)
                {
                    str4 = model.get_users_child_session().get_u_name();
                }
                string             str5 = "";
                string             str6 = "";
                cz_lotteryopen_log _log = new cz_lotteryopen_log();
                _log.set_phase_id(phaseModel.get_p_id());
                _log.set_phase(phaseModel.get_phase());
                _log.set_u_name(model.get_u_name());
                _log.set_children_name(str4);
                _log.set_action("開放數據");
                _log.set_old_val(str5);
                _log.set_new_val(str6);
                _log.set_ip(LSRequest.GetIP());
                _log.set_add_time(DateTime.Now);
                _log.set_note(string.Format("【本期編號:{0}】開放數據", _log.get_phase()));
                _log.set_type_id(0);
                _log.set_lottery_id(100);
                CallBLL.cz_lotteryopen_log_bll.Insert(_log);
                base.Response.Write(base.ShowDialogBox("開放數據成功!", string.Format("LotteryPeriod/AwardPeriod.aspx?lid={0}", 100), 0));
            }
            else
            {
                base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100070&url={0}&issuccess=1&isback=1", base.Server.UrlDecode(str3)));
            }
        }
示例#2
0
    protected bool isOpenLottery(cz_phase_six openPhase)
    {
        DateTime now   = DateTime.Now;
        string   str   = "n";
        DateTime time2 = Convert.ToDateTime(openPhase.get_stop_date());
        DateTime time3 = Convert.ToDateTime(openPhase.get_sn_stop_date());

        if (time2 >= now)
        {
            str = "y";
        }
        if (time3 >= now)
        {
            str = "y";
        }
        if (openPhase.get_is_closed().ToString().Equals("1") || str.Equals("n"))
        {
            return(false);
        }
        return(true);
    }
示例#3
0
        protected void IsOpenSix()
        {
            cz_phase_six currentPhase = CallBLL.cz_phase_six_bll.GetCurrentPhase();
            DateTime     now          = DateTime.Now;
            string       str          = "n";
            DateTime     time2        = Convert.ToDateTime(currentPhase.get_stop_date());
            DateTime     time3        = Convert.ToDateTime(currentPhase.get_sn_stop_date());

            if (time2 >= now)
            {
                str = "y";
            }
            if (time3 >= now)
            {
                str = "y";
            }
            if (currentPhase.get_is_closed().ToString().Equals("1") || str.Equals("n"))
            {
                base.Response.Redirect(string.Format("ClosedLottery.aspx?lottery_type=100&player_type=tmA", new object[0]), true);
                base.Response.End();
            }
        }
示例#4
0
        protected void IsOpenLottery()
        {
            string    str          = LSRequest.qq("player_type");
            string    str2         = "";
            int?      nullable     = null;
            DataTable currentPhase = null;

            if ((this.Context.Request.Path.ToLower().IndexOf("cqsc_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_cqsc_bll.IsPhaseClose();
                nullable     = 1;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("kl10_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_kl10_bll.IsPhaseClose();
                nullable     = 0;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("pk10_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_pk10_bll.IsPhaseClose();
                nullable     = 2;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("xync_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_xync_bll.IsPhaseClose();
                nullable     = 3;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("jsk3.aspx") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_jsk3_bll.IsPhaseClose();
                nullable     = 4;
                str2         = "";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("kl8_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_kl8_bll.IsPhaseClose();
                nullable     = 5;
                str2         = "zh";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("k8sc_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_k8sc_bll.IsPhaseClose();
                nullable     = 6;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("pcdd_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_pcdd_bll.IsPhaseClose();
                nullable     = 7;
                str2         = "lmp";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("six_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_six_bll.GetCurrentPhase("1");
                nullable     = 100;
                str2         = "tm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("xyft5_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_xyft5_bll.IsPhaseClose();
                nullable     = 9;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("pkbjl_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_pkbjl_bll.IsPhaseClose();
                nullable     = 8;
                str2         = "p1";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("jscar_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_jscar_bll.IsPhaseClose();
                nullable     = 10;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("speed5_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_speed5_bll.IsPhaseClose();
                nullable     = 11;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("jscqsc_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_jscqsc_bll.IsPhaseClose();
                nullable     = 13;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("jspk10_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_jspk10_bll.IsPhaseClose();
                nullable     = 12;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("jssfc_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_jssfc_bll.IsPhaseClose();
                nullable     = 14;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("jsft2_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_jsft2_bll.IsPhaseClose();
                nullable     = 15;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("car168_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_car168_bll.IsPhaseClose();
                nullable     = 0x10;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("ssc168_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_ssc168_bll.IsPhaseClose();
                nullable     = 0x11;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("vrcar_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_vrcar_bll.IsPhaseClose();
                nullable     = 0x12;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("vrssc_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_vrssc_bll.IsPhaseClose();
                nullable     = 0x13;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("xyftoa_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_xyftoa_bll.IsPhaseClose();
                nullable     = 20;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("xyftsg_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_xyftsg_bll.IsPhaseClose();
                nullable     = 0x15;
                str2         = "lm";
            }
            if ((this.Context.Request.Path.ToLower().IndexOf("happycar_") > -1) && (this.Context.Request.Path.ToLower().IndexOf(".aspx") > -1))
            {
                currentPhase = CallBLL.cz_phase_happycar_bll.IsPhaseClose();
                nullable     = 0x16;
                str2         = "lm";
            }
            if (!string.IsNullOrEmpty(str))
            {
                str2 = str;
            }
            if (nullable.HasValue)
            {
                DataTable lotteryList = base.GetLotteryList();
                if (!nullable.Equals(100))
                {
                    if (currentPhase.Rows[0]["isopen"].ToString().Equals("0"))
                    {
                        base.Response.Redirect(string.Format("/m/ClosedLottery.aspx?lottery_type={0}&player_type={1}", nullable, str2), true);
                        base.Response.End();
                    }
                }
                else
                {
                    cz_phase_six _six  = CallBLL.cz_phase_six_bll.GetCurrentPhase();
                    DateTime     now   = DateTime.Now;
                    string       str3  = "n";
                    DateTime     time2 = Convert.ToDateTime(_six.get_stop_date());
                    DateTime     time3 = Convert.ToDateTime(_six.get_sn_stop_date());
                    if (time2 >= now)
                    {
                        str3 = "y";
                    }
                    if (time3 >= now)
                    {
                        str3 = "y";
                    }
                    if (_six.get_is_closed().ToString().Equals("1") || str3.Equals("n"))
                    {
                        base.Response.Redirect(string.Format("/m/ClosedLottery.aspx?lottery_type={0}&player_type={1}", nullable, str2), true);
                        base.Response.End();
                    }
                }
            }
        }
示例#5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Response.Expires = 0;
        base.IsUserLoginByMobile();
        this.caizhong  = base.qq("caizhong");
        this.game_type = base.qq("game_type");
        this.wanfa     = base.qq("wanfa");
        this.jiangqi   = base.qq("jiangqi");
        this.txtMomey  = base.qq("txtMomey");
        this.data_str  = base.qq("data");
        this.wt_value  = base.qq("uPI_WT");
        this.lmtype    = base.qq("lmtype");
        string str = base.qq("ids");

        this.group_odds  = base.qq("group_odds");
        this.numbers     = base.qq("numbers");
        this.str_numbers = this.numbers;
        this.str_numbers.Replace(',', '、');
        this.lx_numbers = base.qq("zodiac");
        this.lx_numbers.Replace(',', '、');
        string str2 = base.qq("plx");

        if (((((this.caizhong == "") || (this.wanfa == "")) || ((this.jiangqi == "") || (this.data_str == ""))) || (this.txtMomey == "")) || (this.game_type == ""))
        {
            this.EndTipInfo("参数错误!");
        }
        this.r_url = "SIX_" + this.game_type + ".aspx?lottery_type=" + this.caizhong + "&player_type=" + this.wanfa;
        Dictionary <string, object> source = new Dictionary <string, object>();

        string[] strArray = null;
        string   str3     = "";

        if (this.lmtype != "0")
        {
            strArray     = this.data_str.Split(new char[] { '|' });
            this.s_count = strArray.Length;
            this.s_momey = int.Parse(this.txtMomey) * strArray.Length;
            foreach (string str4 in strArray)
            {
                string[] strArray2 = str4.Split(new char[] { ',' })[0].Split(new char[] { '_' });
                str3 = str3 + strArray2[3].ToString().Trim() + ",";
            }
            str3 = str3.Substring(0, str3.Length - 1);
        }
        else
        {
            string[]  strArray3;
            string[]  strArray4;
            DataTable wTs;
            int       num3;
            int       num4;
            DataRow[] rowArray;
            double    num5;
            double    num6;
            strArray     = this.data_str.Split(new char[] { '|' });
            this.s_count = 1;
            foreach (string str4 in strArray)
            {
                string str5 = str4.Split(new char[] { ',' })[0];
                string key  = str5.Substring(str5.IndexOf("jeu_p_"));
                string str7 = str4.Split(new char[] { ',' })[1];
                source.Add(key, str7);
            }
            int    num  = source.Count <KeyValuePair <string, object> >();
            int    num2 = 0;
            string str8 = str.Split(new char[] { '_' })[1];
            str3 = str8;
            if (((str8.Equals("92285") || str8.Equals("92286")) || str8.Equals("92638")) || str8.Equals("92639"))
            {
                num2      = ((num * (num - 1)) * (num - 2)) / 6;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = null;
                if (str8.Equals("92285"))
                {
                    wTs = CallBLL.cz_wt_3qz_six_bll.GetWTs();
                }
                else if (str8.Equals("92286"))
                {
                    wTs = CallBLL.cz_wt_3z2_six_bll.GetWTs();
                }
                else if (str8.Equals("92638"))
                {
                    wTs = CallBLL.cz_wt_3qz_b_six_bll.GetWTs();
                }
                else if (str8.Equals("92639"))
                {
                    wTs = CallBLL.cz_wt_3z2_b_six_bll.GetWTs();
                }
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if ((((str8.Equals("92287") || str8.Equals("92288")) || (str8.Equals("92289") || str8.Equals("92640"))) || str8.Equals("92641")) || str8.Equals("92642"))
            {
                num2      = (num * (num - 1)) / 2;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = null;
                if (str8.Equals("92287"))
                {
                    wTs = CallBLL.cz_wt_2qz_six_bll.GetWTs();
                }
                else if (str8.Equals("92288"))
                {
                    wTs = CallBLL.cz_wt_2zt_six_bll.GetWTs();
                }
                else if (str8.Equals("92289"))
                {
                    wTs = CallBLL.cz_wt_tc_six_bll.GetWTs();
                }
                else if (str8.Equals("92640"))
                {
                    wTs = CallBLL.cz_wt_2qz_b_six_bll.GetWTs();
                }
                else if (str8.Equals("92641"))
                {
                    wTs = CallBLL.cz_wt_2zt_b_six_bll.GetWTs();
                }
                else if (str8.Equals("92642"))
                {
                    wTs = CallBLL.cz_wt_tc_b_six_bll.GetWTs();
                }
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92575") || str8.Equals("92643"))
            {
                num2      = (((num * (num - 1)) * (num - 2)) * (num - 3)) / 0x18;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = null;
                if (str8.Equals("92575"))
                {
                    wTs = CallBLL.cz_wt_4z1_six_bll.GetWTs();
                }
                else if (str8.Equals("92643"))
                {
                    wTs = CallBLL.cz_wt_4z1_b_six_bll.GetWTs();
                }
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92572"))
            {
                num2      = ((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) / 120;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = CallBLL.cz_wt_5bz_six_bll.GetWTs();
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92588"))
            {
                num2      = (((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) * (num - 5)) / 720;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = CallBLL.cz_wt_6bz_six_bll.GetWTs();
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92589"))
            {
                num2      = ((((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) * (num - 5)) * (num - 6)) / 0x13b0;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = CallBLL.cz_wt_7bz_six_bll.GetWTs();
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92590"))
            {
                num2      = (((((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) * (num - 5)) * (num - 6)) * (num - 7)) / 0x9d80;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = CallBLL.cz_wt_8bz_six_bll.GetWTs();
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92591"))
            {
                num2      = ((((((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) * (num - 5)) * (num - 6)) * (num - 7)) * (num - 8)) / 0x58980;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = CallBLL.cz_wt_9bz_six_bll.GetWTs();
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92592"))
            {
                num2      = (((((((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) * (num - 5)) * (num - 6)) * (num - 7)) * (num - 8)) * (num - 9)) / 0x375f00;
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = CallBLL.cz_wt_10bz_six_bll.GetWTs();
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
            else if (str8.Equals("92566") || str8.Equals("92569"))
            {
                num2 = (num * (num - 1)) / 2;
                if (str8.Equals("92569"))
                {
                    this.str_numbers.Replace("、", "尾、");
                }
            }
            else if (str8.Equals("92567") || str8.Equals("92570"))
            {
                num2 = ((num * (num - 1)) * (num - 2)) / 6;
                if (str8.Equals("92570"))
                {
                    this.str_numbers.Replace("、", "尾、");
                }
            }
            else if (str8.Equals("92568") || str8.Equals("92571"))
            {
                num2 = (((num * (num - 1)) * (num - 2)) * (num - 3)) / 0x18;
                if (str8.Equals("92571"))
                {
                    this.str_numbers.Replace("、", "尾、");
                }
            }
            else if (str8.Equals("92636") || str8.Equals("92637"))
            {
                num2 = ((((num * (num - 1)) * (num - 2)) * (num - 3)) * (num - 4)) / 120;
                if (str8.Equals("92637"))
                {
                    this.str_numbers.Replace("、", "尾、");
                }
            }
            else if (str8.Equals("92565"))
            {
                num2 = 1;
            }
            this.g_cnt   = num2;
            this.s_momey = this.g_cnt * int.Parse(this.txtMomey);
            if (((str8.Equals("92566") || str8.Equals("92567")) || str8.Equals("92568")) || str8.Equals("92636"))
            {
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                string[] strArray5 = base.qq("zodiac").Split(new char[] { ',' });
                wTs = null;
                wTs = CallBLL.cz_wt_sxlwsl_six_bll.GetWTs(str8);
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT_SX.Add(strArray5[num3], num5);
                        }
                        num3++;
                    }
                }
            }
            else if (((str8.Equals("92569") || str8.Equals("92570")) || str8.Equals("92571")) || str8.Equals("92637"))
            {
                strArray3 = this.numbers.Split(new char[] { ',' });
                strArray4 = str2.Split(new char[] { ',' });
                wTs       = null;
                wTs       = CallBLL.cz_wt_sxlwsl_six_bll.GetWTs(str8);
                if ((wTs != null) && (wTs.Rows.Count > 0))
                {
                    num3 = 0;
                    foreach (string str9 in strArray3)
                    {
                        num4     = int.Parse(str9);
                        rowArray = wTs.Select(string.Format(" number = {0} ", num4));
                        if ((rowArray != null) && (rowArray.Count <DataRow>() > 0))
                        {
                            num5 = double.Parse(rowArray[0]["wt_value"].ToString());
                            num6 = double.Parse(strArray4[num3]);
                            this.dictWT_WS.Add(str9, num5);
                        }
                        num3++;
                    }
                }
            }
        }
        string       str10        = "";
        string       str11        = "";
        cz_phase_six currentPhase = CallBLL.cz_phase_six_bll.GetCurrentPhase();

        if (currentPhase != null)
        {
            if (currentPhase.get_is_closed() == 1)
            {
                this.EndTipInfo("停止下注");
                return;
            }
            str10            = currentPhase.get_phase().ToString();
            this.jiangqi_str = str10;
            str11            = currentPhase.get_p_id().ToString();
        }
        else
        {
            this.EndTipInfo("停止下注");
            return;
        }
        DataTable playIDByOddsIds = CallBLL.cz_odds_six_bll.GetPlayIDByOddsIds(str3);
        DateTime  now             = DateTime.Now;
        DateTime  time2           = Convert.ToDateTime(currentPhase.get_stop_date());
        DateTime  time3           = Convert.ToDateTime(currentPhase.get_sn_stop_date());

        if (((((playIDByOddsIds.Rows[0]["play_id"].ToString().Trim() == "91001") || (playIDByOddsIds.Rows[0]["play_id"].ToString().Trim() == "91002")) || ((playIDByOddsIds.Rows[0]["play_id"].ToString().Trim() == "91004") || (playIDByOddsIds.Rows[0]["play_id"].ToString().Trim() == "91005"))) || (playIDByOddsIds.Rows[0]["play_id"].ToString().Trim() == "91007")) || (playIDByOddsIds.Rows[0]["play_id"].ToString().Trim() == "91038"))
        {
            if (time3 < now)
            {
                this.EndTipInfo("停止下注");
                return;
            }
        }
        else if (time2 < now)
        {
            this.EndTipInfo("停止下注");
            return;
        }
        DataSet playOddsByID = CallBLL.cz_odds_six_bll.GetPlayOddsByID(str3);

        this.plDT = playOddsByID.Tables[0];
        if (this.plDT.Rows.Count == 0)
        {
            this.EndTipInfo("賠率ID設置错误!");
        }
        else
        {
            string[] strArray6 = str3.Split(new char[] { ',' });
            for (int i = 0; i < strArray6.Length; i++)
            {
                bool flag = false;
                for (int j = 0; j < this.plDT.Rows.Count; j++)
                {
                    if (strArray6[i].Equals(this.plDT.Rows[j]["odds_id"].ToString()))
                    {
                        flag = true;
                        break;
                    }
                }
                if (!flag)
                {
                    this.EndTipInfo("赔率ID错误!");
                    return;
                }
            }
            this.uModel = base.GetUserModelInfo;
            string str12 = this.Session["user_name"].ToString();
            this.pk_kind = this.uModel.get_six_kind();
        }
    }
示例#6
0
    protected void out_six_odds_info()
    {
        string str  = LSRequest.qq("playid");
        string str2 = LSRequest.qq("playpage");

        if (string.IsNullOrEmpty(str))
        {
            base.Response.End();
        }
        else
        {
            string str3 = this.Session["user_name"].ToString();
            cz_userinfo_session getUserModelInfo = base.GetUserModelInfo;
            string       str4   = getUserModelInfo.get_su_type().ToString();
            string       str5   = getUserModelInfo.get_u_name().ToString();
            string       str6   = getUserModelInfo.get_six_kind().Trim();
            ReturnResult result = new ReturnResult();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();
            dictionary.Add("type", "get_oddsinfo");
            dictionary.Add("playpage", str2);
            DataTable table = CallBLL.cz_users_bll.GetCredit(str5, str4).Tables[0];
            string    str7  = table.Rows[0]["six_credit"].ToString();
            string    str8  = table.Rows[0]["six_iscash"];
            decimal   num   = Convert.ToDecimal(str7);
            string    str9  = "0";
            if (str8.Equals("1"))
            {
                str9 = "1";
            }
            decimal num2 = Convert.ToDecimal(table.Rows[0]["six_usable_credit"].ToString());
            dictionary.Add("iscash", str9);
            dictionary.Add("credit", num.ToString("F1"));
            dictionary.Add("usable_credit", num2.ToString("F1"));
            cz_phase_six currentPhase = CallBLL.cz_phase_six_bll.GetCurrentPhase();
            if (!this.isOpenLottery(currentPhase))
            {
                dictionary.Add("status", "3");
                base.OutJson(JsonHandle.ObjectToJson(dictionary));
            }
            else
            {
                DateTime now   = DateTime.Now;
                string   str11 = "n";
                string   str12 = "0";
                string   str13 = "";
                string   str14 = currentPhase.get_open_date().ToString();
                string   str15 = "";
                DateTime time2 = Convert.ToDateTime(currentPhase.get_stop_date());
                DateTime time3 = Convert.ToDateTime(currentPhase.get_sn_stop_date());
                TimeSpan span  = Utils.DateDiff(time2, now);
                TimeSpan span2 = Utils.DateDiff(time3, now);
                string   str16 = string.Concat(new object[] { (span.Days * 0x18) + span.Hours, ":", span.Minutes, ":", span.Seconds });
                string   str17 = string.Concat(new object[] { (span2.Days * 0x18) + span2.Hours, ":", span2.Minutes, ":", span2.Seconds });
                if (time2 < now)
                {
                    str15 = str16;
                }
                else
                {
                    str11 = "y";
                    str12 = "1";
                    str15 = str16;
                }
                if (time3 < now)
                {
                    str13 = str17;
                }
                else
                {
                    str11 = "y";
                    str12 = "1";
                    str13 = str17;
                }
                if ((currentPhase != null) && currentPhase.get_is_closed().Equals(0))
                {
                    int num3;
                    if (time2 < now)
                    {
                        num3 = CallBLL.cz_odds_six_bll.UpdateIsOpen(1, "91001,91002,91003,91004,91005,91007,91038");
                    }
                    if (time3 < now)
                    {
                        num3 = CallBLL.cz_odds_six_bll.UpdateIsOpen(0, "");
                    }
                }
                string str18 = (currentPhase != null) ? currentPhase.get_phase() : "";
                string str19 = (currentPhase != null) ? currentPhase.get_p_id().ToString() : "";
                dictionary.Add("openning", str11);
                dictionary.Add("isopen", str12);
                int index = str14.IndexOf(' ');
                dictionary.Add("drawopen_time", str14.Substring(index));
                string   str20    = "";
                string[] strArray = str13.Split(new char[] { ':' });
                str20 = (Convert.ToInt32(strArray[0]) < 10) ? ("0" + strArray[0]) : strArray[0];
                str20 = (str20 + ":" + ((Convert.ToInt32(strArray[1]) < 10) ? ("0" + strArray[1]) : strArray[1])) + ":" + ((Convert.ToInt32(strArray[2]) < 10) ? ("0" + strArray[2]) : strArray[2]);
                dictionary.Add("stop_time", str20);
                dictionary.Add("nn", str18);
                dictionary.Add("p_id", str19);
                dictionary.Add("profit", "");
                DataSet play = CallBLL.cz_play_six_bll.GetPlay(str, str4);
                if (play == null)
                {
                    base.Response.End();
                }
                else
                {
                    DataTable table2 = play.Tables["odds"];
                    if (table2 == null)
                    {
                        base.Response.End();
                    }
                    else
                    {
                        DataSet   cache;
                        DataTable table3  = null;
                        DataTable table4  = null;
                        DataTable table5  = null;
                        DataTable table6  = null;
                        DataTable table7  = null;
                        DataTable table8  = null;
                        DataTable wT      = null;
                        DataTable table10 = null;
                        DataTable table11 = null;
                        DataTable table12 = null;
                        DataTable table13 = null;
                        DataTable table14 = null;
                        DataTable table15 = null;
                        DataTable table16 = null;
                        DataTable table17 = null;
                        DataTable table18 = null;
                        DataTable table19 = null;
                        DataTable table20 = null;
                        DataTable table21 = null;
                        DataTable table22 = null;
                        string    str37   = str2;
                        if (str37 != null)
                        {
                            if (!(str37 == "six_lm"))
                            {
                                if (str37 == "six_lm_b")
                                {
                                    wT      = CallBLL.cz_wt_3qz_b_six_bll.GetWT();
                                    table10 = CallBLL.cz_wt_3z2_b_six_bll.GetWT();
                                    table11 = CallBLL.cz_wt_2qz_b_six_bll.GetWT();
                                    table12 = CallBLL.cz_wt_2zt_b_six_bll.GetWT();
                                    table13 = CallBLL.cz_wt_tc_b_six_bll.GetWT();
                                    table14 = CallBLL.cz_wt_4z1_b_six_bll.GetWT();
                                }
                                else if (str37 == "six_bz")
                                {
                                    table15 = CallBLL.cz_wt_5bz_six_bll.GetWT();
                                    table16 = CallBLL.cz_wt_6bz_six_bll.GetWT();
                                    table17 = CallBLL.cz_wt_7bz_six_bll.GetWT();
                                    table18 = CallBLL.cz_wt_8bz_six_bll.GetWT();
                                    table19 = CallBLL.cz_wt_9bz_six_bll.GetWT();
                                    table20 = CallBLL.cz_wt_10bz_six_bll.GetWT();
                                }
                                else if (str37 == "six_lx")
                                {
                                    table21 = CallBLL.cz_wt_sxlwsl_six_bll.GetWT();
                                    table22 = CallBLL.cz_wt_6xyz_six_bll.GetWT();
                                }
                                else if (str37 == "six_ws")
                                {
                                    table21 = CallBLL.cz_wt_sxlwsl_six_bll.GetWT();
                                }
                            }
                            else
                            {
                                table3 = CallBLL.cz_wt_3qz_six_bll.GetWT();
                                table4 = CallBLL.cz_wt_3z2_six_bll.GetWT();
                                table5 = CallBLL.cz_wt_2qz_six_bll.GetWT();
                                table6 = CallBLL.cz_wt_2zt_six_bll.GetWT();
                                table7 = CallBLL.cz_wt_tc_six_bll.GetWT();
                                table8 = CallBLL.cz_wt_4z1_six_bll.GetWT();
                            }
                        }
                        DataTable drawbackByPlayIds = null;
                        if (FileCacheHelper.get_GetSixPutMoneyCache() == "1")
                        {
                            foreach (string str21 in str.Split(new char[] { ',' }))
                            {
                                DataTable table24;
                                if (CacheHelper.GetCache("six_drawback_FileCacheKey" + str21 + this.Session["user_name"].ToString()) != null)
                                {
                                    cache = CacheHelper.GetCache("six_drawback_FileCacheKey" + str21 + this.Session["user_name"].ToString()) as DataSet;
                                    if (drawbackByPlayIds == null)
                                    {
                                        drawbackByPlayIds = cache.Tables[0];
                                    }
                                    else
                                    {
                                        table24 = drawbackByPlayIds.Clone();
                                        table24 = cache.Tables[0];
                                        if (table24 != null)
                                        {
                                            drawbackByPlayIds.Merge(table24);
                                        }
                                    }
                                }
                                else if (drawbackByPlayIds == null)
                                {
                                    drawbackByPlayIds = CallBLL.cz_drawback_six_bll.GetDrawbackByPlayIds(str21, getUserModelInfo.get_u_name());
                                }
                                else
                                {
                                    table24 = drawbackByPlayIds.Clone();
                                    table24 = CallBLL.cz_drawback_six_bll.GetDrawbackByPlayIds(str21, getUserModelInfo.get_u_name());
                                    if (table24 != null)
                                    {
                                        drawbackByPlayIds.Merge(table24);
                                    }
                                }
                            }
                        }
                        else if (CacheHelper.GetCache("six_drawback_FileCacheKey" + this.Session["user_name"].ToString()) != null)
                        {
                            cache             = CacheHelper.GetCache("six_drawback_FileCacheKey" + this.Session["user_name"].ToString()) as DataSet;
                            drawbackByPlayIds = cache.Tables[0];
                        }
                        else
                        {
                            drawbackByPlayIds = CallBLL.cz_drawback_six_bll.GetDrawbackByPlayIds(str, getUserModelInfo.get_u_name());
                        }
                        Dictionary <string, object> dictionary2 = new Dictionary <string, object>();
                        foreach (DataRow row in table2.Rows)
                        {
                            string        key    = "";
                            string        pl     = "";
                            string        s      = "";
                            string        str25  = "";
                            string        str26  = "";
                            string        str27  = "";
                            string        str28  = "";
                            List <double> source = new List <double>();
                            Dictionary <string, object> dictionary3 = new Dictionary <string, object>();
                            key = row["play_id"].ToString() + "_" + row["odds_id"].ToString();
                            string str29 = row["current_odds"].ToString();
                            string str30 = row[str6 + "_diff"].ToString().Trim();
                            if (!row["is_open"].ToString().Equals("0"))
                            {
                                try
                                {
                                    string[] strArray3 = row["current_odds"].ToString().Split(new char[] { ',' });
                                    string[] strArray4 = row[str6 + "_diff"].ToString().Trim().Split(new char[] { ',' });
                                    base.GetOdds_SIX(row["odds_id"].ToString(), row["current_odds"].ToString(), row[str6 + "_diff"].ToString(), ref pl);
                                }
                                catch (Exception exception)
                                {
                                    string message = exception.Message;
                                }
                            }
                            else if (row["current_odds"].ToString().Split(new char[] { ',' }).Length > 1)
                            {
                                pl = "-,-";
                            }
                            else
                            {
                                pl = "-";
                            }
                            DataRow[] rowArray = drawbackByPlayIds.Select(string.Format(" play_id={0} and u_name='{1}' ", row["play_id"].ToString(), getUserModelInfo.get_u_name()));
                            string    str32    = rowArray[0]["single_phase_amount"].ToString();
                            string    str33    = rowArray[0]["single_max_amount"].ToString();
                            string    str34    = rowArray[0]["single_min_amount"].ToString();
                            s     = row["allow_min_amount"].ToString();
                            str25 = row["allow_max_amount"].ToString();
                            str26 = row["max_appoint"].ToString();
                            str27 = row["total_amount"].ToString();
                            str28 = row["allow_max_put_amount"].ToString();
                            if (Convert.ToDecimal(str25) > Convert.ToDecimal(str28))
                            {
                                str25 = row["allow_max_put_amount"].ToString();
                            }
                            if (Convert.ToDecimal(str25) > Convert.ToDecimal(str27))
                            {
                                str25 = row["total_amount"].ToString();
                            }
                            if (double.Parse(s) < double.Parse(str34))
                            {
                                s = str34;
                            }
                            if (double.Parse(str25) > double.Parse(str33))
                            {
                                str25 = str33;
                            }
                            if ((str2.Equals("six_lm") || str2.Equals("six_lm_b")) || str2.Equals("six_bz"))
                            {
                                switch (row["play_id"].ToString())
                                {
                                case "91016":
                                    foreach (DataRow row2 in table3.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91017":
                                    foreach (DataRow row2 in table4.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91018":
                                    foreach (DataRow row2 in table5.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91019":
                                    foreach (DataRow row2 in table6.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91020":
                                    foreach (DataRow row2 in table7.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91040":
                                    foreach (DataRow row2 in table8.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91060":
                                    foreach (DataRow row2 in wT.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91061":
                                    foreach (DataRow row2 in table10.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91062":
                                    foreach (DataRow row2 in table11.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91063":
                                    foreach (DataRow row2 in table12.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91064":
                                    foreach (DataRow row2 in table13.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91065":
                                    foreach (DataRow row2 in table14.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91037":
                                    foreach (DataRow row2 in table15.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91047":
                                    foreach (DataRow row2 in table16.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91048":
                                    foreach (DataRow row2 in table17.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91049":
                                    foreach (DataRow row2 in table18.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91050":
                                    foreach (DataRow row2 in table19.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;

                                case "91051":
                                    foreach (DataRow row2 in table20.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                    break;
                                }
                            }
                            if (str2.Equals("six_lx"))
                            {
                                string str36 = row["odds_id"].ToString();
                                if (str36.Equals("92565"))
                                {
                                    foreach (DataRow row2 in table22.Rows)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                }
                                else
                                {
                                    DataRow[] rowArray2 = table21.Select(string.Format(" odds_id={0} ", Convert.ToInt32(str36)));
                                    foreach (DataRow row2 in rowArray2)
                                    {
                                        source.Add(double.Parse(row2["wt_value"].ToString()));
                                    }
                                    if (source.Count <double>(p => (p == 0.0)) == source.Count)
                                    {
                                        source.Clear();
                                    }
                                }
                            }
                            dictionary3.Add("pl", pl);
                            dictionary3.Add("plx", new List <double>(source));
                            dictionary3.Add("min_amount", s);
                            dictionary3.Add("max_amount", str25);
                            dictionary3.Add("top_amount", str26);
                            dictionary3.Add("dq_max_amount", str27);
                            dictionary3.Add("dh_max_amount", str28);
                            dictionary2.Add(key, new Dictionary <string, object>(dictionary3));
                        }
                        dictionary.Add("status", "1");
                        dictionary.Add("play_odds", dictionary2);
                        base.OutJson(JsonHandle.ObjectToJson(dictionary));
                    }
                }
            }
        }
    }