Exemplo n.º 1
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/Bet-Issue.fcgi?id={this.GetBetsLotteryID(pType)}&_={DateTime.Now.ToOADate()}";
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"issue\":\"", "\"", 0).Replace("-", "");
             if (!CommFunc.CheckIsKLCLottery(CommFunc.GetLotteryID(pType)))
             {
                 base.Expect = "20" + base.Expect;
             }
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
         if (base.Prize == "")
         {
             pUrl          = this.GetLotteryLine(pType, false);
             lotteryLine   = this.GetLotteryLine(pType, false);
             pResponsetext = "";
             HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, lotteryLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 base.Rebate = CommFunc.GetIndexString(pResponsetext, "\"ssc\":", ",", 0);
                 base.Prize  = (1700.0 + ((Convert.ToDouble(base.Rebate) * 2.0) * 10.0)).ToString();
             }
         }
         if (base.PlayMethodDic.Count == 0)
         {
             string str4 = "http://dl.hengrui2017.net:7000";
             pUrl          = $"{str4}/front/hr/script/min/{this.GetBetsLotteryID(pType)}.min.gz.js";
             lotteryLine   = this.GetLotteryLine(pType, false);
             pResponsetext = "";
             HttpHelper.GetResponse7(ref pResponsetext, pUrl, "GET", string.Empty, lotteryLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 this.CountPrizeDic(pResponsetext);
             }
         }
     }
     catch
     {
     }
 }