/// <summary> /// 更新一场篮球(列表使用,用作转换走地和更新封盘) /// </summary> /// <param name="p_id">球探标识ID</param> public void Update2(int p_id) { //得到整个页面 string Basketvip = new TPR3.Collec.Basketvip().GetBasketvip(p_id);//166516、160572 //得到让球盘赔率集合 string Basketvip1 = new TPR3.Collec.Basketvip().BasketvipHtml(Basketvip); //得到大小盘赔率集合 string Basketvip2 = new TPR3.Collec.Basketvip().BasketvipHtml2(Basketvip); //分析让球盘赔率 if (!string.IsNullOrEmpty(Basketvip1)) { Basketvip1 = Utils.Mid(Basketvip1, 1, Basketvip1.Length); string[] Temp = Regex.Split(Basketvip1, "@"); string ypxml = Temp[0]; //builder.Append(ypodds + "<br />");//此值当显示封盘时取不到 int p_isluckone = 0; if (ypxml.Contains("封")) { p_isluckone = 1; } //更新是否封盘 if (ypxml.Contains("滚")) { new TPR3.BLL.guess.BaList().Updatep_isluck(p_id, p_isluckone, 1); //自动转换成走地 string xmlPath = "/Controls/guess.xml"; string title = new TPR3.BLL.guess.BaList().Getp_title(p_id); if (ub.GetSub("Sitegqstat2", xmlPath).IndexOf(title) != -1) { DateTime p_TPRtime = new TPR3.BLL.guess.BaList().Getp_TPRtime(p_id); int BasketMin = Utils.ParseInt(ub.GetSub("SiteBasketMin", xmlPath)); new TPR3.BLL.guess.BaList().FootOnceType3(p_id, p_TPRtime.AddMinutes(BasketMin)); } } } //分析大小盘赔率 if (!string.IsNullOrEmpty(Basketvip2)) { Basketvip2 = Utils.Mid(Basketvip2, 1, Basketvip2.Length); string[] Temp2 = Regex.Split(Basketvip2, "@"); string dxxml = Temp2[0]; //builder.Append(dxodds + "<br />");//此值当显示封盘时取不到 int p_islucktwo = 0; if (dxxml.Contains("封")) { p_islucktwo = 1; } //更新是否封盘 if (dxxml.Contains("滚")) { new TPR3.BLL.guess.BaList().Updatep_isluck(p_id, p_islucktwo, 2); } } }
/// <summary> /// 更新一场足球(列表使用,用作转换走地和更新封盘) /// </summary> /// <param name="p_id">球探标识ID</param> public void Update2(int p_id) { string Footvip = new TPR3.Collec.Footvip().GetFootvip(p_id); if (!string.IsNullOrEmpty(Footvip)) { Footvip = Utils.Mid(Footvip, 1, Footvip.Length); string[] Temp = Regex.Split(Footvip, "@"); string Lock1 = Temp[0]; string Lock2 = Temp[1]; string Lock3 = Temp[2]; //------------让球盘开始------------ int p_isluckone = 0; if (Lock1.Contains("封") || Lock1.Contains("background-color:red;color:White;")) { p_isluckone = 1; } //更新是否封盘 if (Lock1.Contains("滚")) { new TPR3.BLL.guess.BaList().Updatep_isluck(p_id, p_isluckone, 1); //自动转换成走地 string xmlPath = "/Controls/guess.xml"; string title = new TPR3.BLL.guess.BaList().Getp_title(p_id); if (ub.GetSub("Sitegqstat", xmlPath).IndexOf(title) != -1) { DateTime p_TPRtime = new TPR3.BLL.guess.BaList().Getp_TPRtime(p_id); int FootMin = Utils.ParseInt(ub.GetSub("SiteFootMin", xmlPath)); new TPR3.BLL.guess.BaList().FootOnceType2(p_id, p_TPRtime.AddMinutes(FootMin)); } } //------------让球盘结束------------ //------------大小盘开始------------ int p_islucktwo = 0; if (Lock2.Contains("封") || Lock2.Contains("background-color:red;color:White;")) { p_islucktwo = 1; } //更新是否封盘 if (Lock2.Contains("滚")) { new TPR3.BLL.guess.BaList().Updatep_isluck(p_id, p_islucktwo, 2); } //------------大小盘结束------------ //------------标准盘开始------------ int p_isluckthr = 0; if (Lock3.Contains("封") || Lock3.Contains("background-color:red;color:White;")) { p_isluckthr = 1; } //更新是否封盘 if (Lock3.Contains("滚")) { new TPR3.BLL.guess.BaList().Updatep_isluck(p_id, p_isluckthr, 3); } //------------标准盘结束------------ } }