Exemplo n.º 1
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         if (base.Token == "")
         {
             string cookieInternal = HttpHelper.GetCookieInternal(this.GetUrlLine());
             base.Token = CommFunc.GetIndexString(cookieInternal, "store.body.appstorage.token=", ";", 0);
         }
         string pUrl          = this.GetLine() + "/ticket/ticketmod/ticketinfo.json";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         string pData         = $"token={base.Token}&ticketId={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             string pExpect = CommFunc.GetIndexString(pResponsetext, "\"planId\":\"", "\"", 0);
             switch (CommFunc.GetLotteryID(pType))
             {
             case "XJSSC":
             case "SD11X5":
             case "GD11X5":
             case "JX11X5":
                 pExpect = pExpect.Replace("-", "-0");
                 break;
             }
             base.Expect = CommFunc.ConvertExpect(pExpect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 2
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/Shared/GetNewPeriod?gameid={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, "\"fnumberofperiod\":\"", "\"", 0);
             base.Expect   = CommFunc.ConvertExpect(base.Expect, pType);
             base.ExpectID = CommFunc.GetIndexString(pResponsetext, "\"fid\":\"", "\"", 0);
         }
         if (base.PlayMethodGroupDic.Count == 0)
         {
             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 != "")
             {
                 this.CountPrizeDic(pResponsetext);
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string str;
         if (base.Prize == "")
         {
             str = this.LoginLotteryWeb(pType, "");
             if (str == "")
             {
                 return;
             }
             base.Prize = CommFunc.GetIndexString(str, "CurMode:'", "'", 0);
         }
         string pUrl      = $"{this.GetLine()}/client/index.php?a=lotto&m=getLotTime&play={this.GetPTLotteryName(pType)}";
         string indexLine = this.GetIndexLine();
         str = "";
         HttpHelper.GetResponse(ref str, pUrl, "GET", string.Empty, indexLine, 0x4e20, "UTF-8", true);
         if (str != "")
         {
             base.Expect = str.Split(new char[] { '|' })[0];
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 4
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string str;
         string indexLine;
         string str3;
         if (base.Prize == "")
         {
             str       = $"{this.GetLine()}/accountInfo/account";
             indexLine = this.GetIndexLine();
             str3      = "";
             HttpHelper.GetResponse(ref str3, str, "GET", string.Empty, indexLine, base.BetsTime2, "UTF-8", true);
             if (str3 != "")
             {
                 base.Prize = CommFunc.GetIndexString(str3, "<tr><td>返点</td><td><span>", "<", 0);
             }
         }
         str       = $"{this.GetLine()}/lottery/getIssue?v={DateTime.Now.ToOADate()}";
         indexLine = this.GetIndexLine();
         str3      = "";
         string pData = $"lotteryId={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref str3, str, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         if (str3 != "")
         {
             base.Expect = CommFunc.GetIndexString(str3, "\"IssueNumber\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 5
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/index.php?s=/home/index/getQiHao/type/{this.GetBetsLotteryID(pType)}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"actionNo\":\"", "\"", 0);
             base.Expect = this.GetAppExpect(pType, base.Expect, false);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
         if (base.Prize == "")
         {
             pUrl          = this.GetLine() + "/index.php/home/user/info.html";
             indexLine     = this.GetLotteryLine(pType, false);
             pResponsetext = "";
             HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 base.Rebate = CommFunc.GetIndexString(pResponsetext, ">", "<", pResponsetext.IndexOf("返点:"));
                 base.Prize  = (1700.0 + (Convert.ToDouble(base.Rebate) * 20.0)).ToString();
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 6
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string str;
         string indexLine;
         string str3;
         string str4;
         if (base.Prize == "")
         {
             str       = $"{this.GetLine()}/accountInfo/GetUserDetailNew";
             indexLine = this.GetIndexLine();
             str3      = "";
             str4      = "";
             HttpHelper.GetResponse(ref str3, str, "POST", str4, indexLine, 0x2710, "UTF-8", true);
             if (str3 != "")
             {
                 base.Prize = CommFunc.GetIndexString(str3, "\"MyRebate\":", ",", 0);
             }
         }
         str       = $"{this.GetLine()}/lottery/getIssue?v={DateTime.Now.ToOADate()}";
         indexLine = this.GetIndexLine();
         str3      = "";
         str4      = $"lotteryId={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref str3, str, "POST", str4, indexLine, 0x2710, "UTF-8", true);
         if (str3 != "")
         {
             base.Expect = CommFunc.GetIndexString(str3, "\"IssueNumber\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 7
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = this.GetLine() + "/Handler/Reward/Current.axd";
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = $"Game={this.GetPTLotteryName(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"Index\":\"", "\"", 0).Trim();
             if (pType == ConfigurationStatus.LotteryType.YRHG15C)
             {
                 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.Prize = CommFunc.GetIndexString(pResponsetext, "data-max=\"", "\"", 0);
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 8
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = this.GetLine() + "/ct-data/loadOpenTime";
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = $"shortName={this.GetPTLotteryName(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"currFullExpect\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
         if (base.Prize == "")
         {
             pUrl          = this.GetLine() + "/ct-data/lottery";
             lotteryLine   = this.GetLotteryLine(pType, false);
             pResponsetext = "";
             string str5 = "wxzhixfs";
             if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
             {
                 str5 = "bjpk10qian1";
             }
             else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
             {
                 str5 = "11x5qsfs";
             }
             pData = $"shortName={this.GetPTLotteryName(pType)}&rulecode={str5}";
             HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 base.Prize = CommFunc.GetIndexString(pResponsetext, "\"maxMode\":", ",", 0);
                 double num = 0.128;
                 if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
                 {
                     num = 0.125;
                     if (AppInfo.Current.Lottery.Type == ConfigurationStatus.LotteryType.PK10)
                     {
                         num = 0.125;
                     }
                 }
                 else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
                 {
                     num = 0.125;
                 }
                 double num2 = Convert.ToDouble(CommFunc.GetIndexString(pResponsetext, "\"repoint\":", ",", 0)) - num;
                 base.Rebate = (num2 > 0.0) ? ((num2 * 100.0)).ToString("0.0") : "0";
                 double num3 = Convert.ToDouble(CommFunc.GetIndexString(pResponsetext, "\"maxModeLi\":", ",", 0));
                 if (Convert.ToDouble(base.Prize) > num3)
                 {
                     base.Rebate = "0";
                 }
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 9
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string str;
         string lotteryLine;
         string str3;
         if (base.PlayMethodDic.Count == 0)
         {
             str         = $"{this.GetLine()}/config/json/game_play_config_{this.GetBetsLotteryID(pType)}.json";
             lotteryLine = this.GetLotteryLine(pType, false);
             str3        = "";
             HttpHelper.GetResponse(ref str3, str, "GET", string.Empty, lotteryLine, 0x2710, "UTF-8", true);
             str3 = CommFunc.GetIndexString(str3, "\"data\":[{", "}]}", 0);
             if (str3 != "")
             {
                 this.CountPrizeDic(str3);
             }
         }
         str         = this.GetLine() + "/lottery/get_lottery_times";
         lotteryLine = this.GetLotteryLine(pType, false);
         str3        = "";
         string pData = $"id={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref str3, str, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (str3 != "")
         {
             base.Expect = CommFunc.GetIndexString(str3, "\"curr_issue\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 10
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         if (!this.CheckLotteryIsVR(pType))
         {
             string pUrl          = $"{this.GetLine()}/proxy/lottery/game/category/{this.GetPTLotteryName(pType)}/recent-issues/4?api_token={this.DataToken}";
             string indexLine     = this.GetIndexLine();
             string pResponsetext = "";
             HttpHelper.GetResponse8(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 base.Expect = CommFunc.GetIndexString(pResponsetext, "\"data\":{\"", "\"", 0);
                 base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
             }
             if (base.PlayMethodDic.Count == 0)
             {
                 pUrl          = $"{this.GetLine()}/proxy/lottery/game/category/{this.GetPTLotteryName(pType)}/plays";
                 indexLine     = this.GetIndexLine();
                 pResponsetext = "";
                 HttpHelper.GetResponse8(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
                 if (pResponsetext != "")
                 {
                     this.CountPrizeDic(pResponsetext);
                 }
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 11
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/v1/lottery/lotteryCurrentPeriod";
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = string.Format("(\"lotteryCode\":\"{0}\",\"token\":\"{1}\")", this.GetPTLotteryName(pType), this.Token).Replace("(", "{").Replace(")", "}");
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect   = CommFunc.GetIndexString(pResponsetext, "\"drawPeriod\":\"", "\"", 0);
             base.Expect   = this.GetAppExpect(pType, base.Expect, false);
             base.Expect   = CommFunc.ConvertExpect(base.Expect, pType);
             base.ExpectID = CommFunc.GetIndexString(pResponsetext, "\"lotteryDrawId\":", ",", 0);
         }
         if (base.Prize == "")
         {
             pUrl          = $"{this.GetLine()}/v1/member/memberMsg";
             lotteryLine   = this.GetLotteryLine(pType, false);
             pResponsetext = "";
             pData         = string.Format("(\"token\":\"{0}\")", this.Token).Replace("(", "{").Replace(")", "}");
             HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 base.Rebate = CommFunc.GetIndexString(pResponsetext, "\"rebatesPercent\":", ",", 0);
                 base.Prize  = (1800.0 + ((Convert.ToDouble(base.Rebate) * 2.0) * 1000.0)).ToString();
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 12
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine;
         string indexLine;
         string str3;
         string str4;
         if (this.CheckLotteryIsVR(pType))
         {
             if (base.IsLoginVR)
             {
                 accountsMemLine = this.GetAccountsMemLine(pType);
                 indexLine       = this.GetIndexLine();
                 str3            = "";
                 str4            = "";
                 HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true);
                 string str5 = str3;
                 AppInfo.Account.BankBalance = Convert.ToDouble(str5);
             }
         }
         else
         {
             accountsMemLine = this.GetAccountsMemLine(pType);
             indexLine       = this.GetIndexLine();
             str3            = "";
             str4            = $"type={this.GetBetsLotteryID(pType)}";
             HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true);
             str3 = this.DecryptString(str3);
             if (str3 != "")
             {
                 base.Expect                 = CommFunc.GetIndexString(str3, "\"Issue\":\"", "\"", 0);
                 base.Expect                 = this.GetAppExpect(pType, base.Expect, false);
                 base.Expect                 = CommFunc.ConvertExpect(base.Expect, pType);
                 base.BankBalance            = CommFunc.GetIndexString(str3, "\"AvaiableAmountStr\":\"", "\"", 0);
                 AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
             }
             accountsMemLine = $"{this.GetLine()}/lottery/getbetbonusgroup";
             indexLine       = this.GetIndexLine();
             str3            = "";
             str4            = "";
             HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true);
             str3 = this.DecryptString(str3);
             if (str3 != "")
             {
                 base.Prize = CommFunc.GetIndexString(str3, "\"Max\":", "}", 0);
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 13
0
        public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
        {
            string pUrl          = $"{this.GetLine()}/gameBet/lottery/lastNumber?code={this.GetPTLotteryName(pType)}&_={DateTime.Now.ToOADate()}";
            string indexLine     = this.GetIndexLine();
            string pResponsetext = "";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
            if (pResponsetext != "")
            {
                base.Expect = CommFunc.GetIndexString(pResponsetext, "\"number\":\"", "\"", 0);
                base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
            }
        }
Exemplo n.º 14
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/LobbyOp/getCountdown/{this.GetBetsLotteryID(pType)}?_={DateTime.Now.ToOADate()}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.ExpectID = CommFunc.GetIndexString(pResponsetext, "\"lottyid\":", ",", 0);
             base.Expect   = CommFunc.GetIndexString(pResponsetext, "\"round\":\"", "\"", 0);
             base.Expect   = CommFunc.ConvertExpect(base.Expect, pType);
             if (base.Prize == "")
             {
                 string str4 = "1/123";
                 if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
                 {
                     str4 = "67/3113";
                 }
                 else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
                 {
                     str4 = "1/1";
                 }
                 pUrl          = $"{this.GetLine()}/GetRateOp/index/{this.GetBetsLotteryID(pType)}/{str4}";
                 indexLine     = this.GetIndexLine();
                 pResponsetext = "";
                 HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
                 if (pResponsetext != "")
                 {
                     string[] strArray   = Strings.Filter(Strings.Split(pResponsetext, "\",\"", -1, CompareMethod.Binary), @"\/", true, CompareMethod.Binary);
                     string   expression = strArray[strArray.Length - 1];
                     double   num        = Convert.ToDouble(Strings.Split(expression, @"\/ ", -1, CompareMethod.Binary)[0]) * 2.0;
                     if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
                     {
                         num *= 1.0101;
                     }
                     else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
                     {
                         num *= 100.0;
                     }
                     base.Prize  = num.ToString();
                     base.Rebate = (Convert.ToDouble(Strings.Split(strArray[0], @"\/ ", -1, CompareMethod.Binary)[1]) * 10.0).ToString();
                 }
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 15
0
        public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
        {
            string pStr = this.LoginLotteryWeb(pType, "");

            if (pStr != "")
            {
                base.Expect = CommFunc.GetIndexString(pStr, "issue:'", "'", 0);
                base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
                if (base.PrizeDic.Count == 0)
                {
                    this.CountPrizeDic(pStr);
                }
            }
        }
Exemplo n.º 16
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
     {
     }
 }
Exemplo n.º 17
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = this.GetLine() + "/ct-data/loadOpenTime";
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = $"shortName={this.GetPTLotteryName(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"currFullExpect\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
         if (base.Prize == "")
         {
             pUrl          = this.GetLine() + "/ct-data/lottery";
             lotteryLine   = this.GetLotteryLine(pType, false);
             pResponsetext = "";
             string str5 = "wxzhixfs";
             if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
             {
                 str5 = "bjpk10qian1";
             }
             else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
             {
                 str5 = "11x5qsfs";
             }
             pData = $"shortName={this.GetPTLotteryName(pType)}&rulecode={str5}";
             HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 this.BetPrize = CommFunc.GetIndexString(pResponsetext, "\"maxMode\":", ",", 0);
                 base.Prize    = this.BetPrize;
                 if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
                 {
                     this.BetPrize = base.Prize = "1980";
                 }
                 base.Rebate = "0";
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 18
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/t?id={this.GetBetsLotteryID(pType)}";
         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, "\"curIssue\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 19
0
        public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
        {
            string pUrl          = this.GetLine() + "/MobileService.aspx";
            string lotteryLine   = this.GetLotteryLine(pType, false);
            string pResponsetext = "";
            string pData         = $"lotteryid={this.GetBetsLotteryID(pType)}&flag=initlottery";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
            if (pResponsetext != "")
            {
                base.Expect = CommFunc.GetIndexString(pResponsetext, "\"issue\":\"", "\"", 0);
                base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
                if (base.PrizeDic.Count == 0)
                {
                    this.CountPrizeDic(pResponsetext);
                }
            }
        }
Exemplo n.º 20
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/api/Lottery/GetIssue?lotteryCode={this.GetBetsLotteryID(pType)}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         HttpHelper.GetResponse1(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         if ((pResponsetext != "") && (pType != ConfigurationStatus.LotteryType.XJPSSC))
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"CurrentIssueNo\": \"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 21
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/GameBet/dynamicConfig?lotteryCode={this.GetBetsLotteryID(pType)}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         string pData         = "";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"number\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 22
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pReferer      = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = $"Model=Game&Action=GetTheIssueAndTime&Id={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, lotteryLine, "POST", pData, pReferer, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"Then_Issue\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 23
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string openTime      = this.GetOpenTime();
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = $"lotteryId={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, openTime, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"expect\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 24
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = this.GetLine() + "/betType/lotterTime.mvc?";
         string lotteryLine   = this.GetLotteryLine(pType, false);
         string pResponsetext = "";
         string pData         = $"gameId={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"ISSUENO\":\"", "\"", 0);
             base.Expect = this.GetAppExpect(pType, base.Expect, false);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 25
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/index.php/game/getNo/{this.GetBetsLotteryID(pType)}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"actionNo\":\"", "\"", 0);
             base.Expect = this.GetAppExpect(pType, base.Expect, false);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
             this.KJTime = CommFunc.GetIndexString(pResponsetext, "\"actionTime\":", "}", 0);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 26
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string openTime      = this.GetOpenTime();
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         string pData         = $"lottery={this.GetPTLotteryName(pType)}&token={base.Token}&user_id={base.VerifyCodeToken}&sign=";
         HttpHelper.GetResponse(ref pResponsetext, openTime, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"no\":\"", "\"", 0);
             base.Expect = this.GetAppExpect(pType, base.Expect, false);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 27
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pResponseText = this.LoginLotteryWeb(pType, "");
         this.CountPrizeDic(pResponseText);
         string str2 = CommFunc.GetIndexString(pResponseText, "\"_token\":\"", "\"", 0);
         if (pResponseText != "")
         {
             if (str2 != "")
             {
                 base.Token = str2;
             }
             base.Expect = "20" + CommFunc.GetIndexString(pResponseText, "\"currentNumber\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }
Exemplo n.º 28
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string pUrl          = $"{this.GetLine()}/lgw/numeros/near?gameId={this.GetBetsLotteryID(pType)}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Expect = CommFunc.GetIndexString(pResponsetext, "\"numero\":\"", "\"", pResponsetext.IndexOf("\"currentNumero\""));
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
             if (base.Prize == "")
             {
                 pUrl          = this.GetLine() + "/lgw/customers/series";
                 indexLine     = this.GetIndexLine();
                 pResponsetext = "";
                 HttpHelper.GetResponse1(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
                 if (pResponsetext != "")
                 {
                     string str4 = "SSC";
                     if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
                     {
                         str4 = "11X5";
                     }
                     else if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)
                     {
                         str4 = "PK10";
                     }
                     str4       = $"gameGroupCode:{str4}";
                     base.Prize = CommFunc.GetIndexString(pResponsetext, "\"maxSeries\":", ",", pResponsetext.IndexOf(str4));
                 }
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 29
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string openTime;
         string lotteryLine;
         string str3;
         string str4;
         if (base.Prize == "")
         {
             openTime    = this.GetLine() + "/yx/u/api/game-lottery/init-game-lottery";
             lotteryLine = this.GetLotteryLine(pType, false);
             str3        = "";
             str4        = $"name={this.GetBetsLotteryID(pType)}";
             HttpHelper.GetResponse(ref str3, openTime, "POST", str4, lotteryLine, 0x2710, "UTF-8", true);
             if (str3 != "")
             {
                 base.Prize = CommFunc.GetIndexString(str3, "\"maxBetCode\" : ", ",", 0);
             }
         }
         if (!this.CheckLotteryIsVR(pType))
         {
             openTime    = this.GetOpenTime();
             lotteryLine = this.GetLotteryLine(pType, false);
             str3        = "";
             str4        = $"name={this.GetPTLotteryName(pType)}";
             HttpHelper.GetResponse(ref str3, openTime, "POST", str4, lotteryLine, 0x2710, "UTF-8", true);
             if (str3 != "")
             {
                 base.Expect = CommFunc.GetIndexString(str3, "\"issue\" : \"", "\"", 0);
                 base.Expect = this.GetAppExpect(pType, base.Expect, false);
                 base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
             }
         }
     }
     catch
     {
     }
 }
Exemplo n.º 30
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         string str;
         string indexLine;
         string str3;
         if (base.Prize == "")
         {
             str       = $"{this.GetLine()}/account/account";
             indexLine = this.GetIndexLine();
             str3      = "";
             HttpHelper.GetResponse(ref str3, str, "GET", string.Empty, indexLine, base.BetsTime2, "UTF-8", true);
             if (str3 != "")
             {
                 base.Prize = CommFunc.GetIndexString(str3, "\"aspan\">", "<", str3.IndexOf("返点:"));
                 if ((AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5) && (Convert.ToDouble(base.Prize) > 1900.0))
                 {
                     base.Prize = "1900";
                 }
             }
         }
         str       = $"{this.GetLine()}/lottery_info/get_issue?v={DateTime.Now.ToOADate()}";
         indexLine = this.GetIndexLine();
         str3      = "";
         string pData = $"lotteryId={this.GetBetsLotteryID(pType)}";
         HttpHelper.GetResponse(ref str3, str, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         if (str3 != "")
         {
             base.Expect = CommFunc.GetIndexString(str3, "\"IssueNumber\":\"", "\"", 0);
             base.Expect = CommFunc.ConvertExpect(base.Expect, pType);
         }
     }
     catch
     {
     }
 }