Beispiel #1
0
        public bool InputWeb(string pID, string pW, ref string pHint)
        {
            bool   flag          = false;
            string webVerifyCode = this.GetWebVerifyCode(AutoBetsWindow.VerifyCodeFile);

            if (webVerifyCode != "")
            {
                string loginLine     = this.GetLoginLine();
                string pUrl          = this.GetLine() + "/web/login";
                string pResponsetext = "";
                string str5          = HttpUtility.UrlEncode(pW);
                string pData         = $"(username:{pID},password:{str5},captcha:{webVerifyCode})".Replace("(", "{").Replace(")", "}");
                HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, loginLine, base.BetsTime2, "UTF-8", true);
                flag = pResponsetext.Contains("\"success\":true");
                if (!flag)
                {
                    pHint = CommFunc.GetIndexString(pResponsetext, "\"errorMessage\":\"", "\"", 0);
                    if (pHint.Contains("验证码"))
                    {
                        pHint = "";
                        return(this.InputWeb(pID, pW, ref pHint));
                    }
                    return(flag);
                }
                HttpHelper.BetsTokenKey   = "authorization";
                HttpHelper.BetsTokenValue = CommFunc.GetIndexString(pResponsetext, "\"items\":\"", "\"", 0);
            }
            return(flag);
        }
Beispiel #2
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         if (!AppInfo.PTInfo.PTIsBreak)
         {
             string accountsMemLine = this.GetAccountsMemLine(pType);
             string indexLine       = this.GetIndexLine();
             string pResponsetext   = "";
             HttpHelper.GetResponse1(ref pResponsetext, accountsMemLine, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
             if (this.CheckBreakConnect(pResponsetext) || (pResponsetext == ""))
             {
                 this.DXCount++;
                 if (this.DXCount >= 3)
                 {
                     this.DXCount             = 0;
                     AppInfo.PTInfo.PTIsBreak = true;
                     return;
                 }
             }
             string str4 = CommFunc.GetIndexString(pResponsetext, "\"availBalance\":", ",", 0);
             AppInfo.Account.BankBalance = Convert.ToDouble(str4);
         }
     }
     catch
     {
     }
 }
Beispiel #3
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, true);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            string        str7;
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        str6          = Guid.NewGuid().ToString();
                            if (this.CheckLotteryIsVR(plan.Type))
                            {
                                str7 = "LotteryGameID={0}&IssueSerialNumber=&Bets%5B0%5D%5BBetTypeCode%5D={1}&Bets%5B0%5D%5BBetTypeName%5D=&Bets%5B0%5D%5BNumber%5D={2}&Bets%5B0%5D%5BPosition%5D={3}&Bets%5B0%5D%5BUnit%5D={4}&Bets%5B0%5D%5BMultiple%5D={5}&Bets%5B0%5D%5BIsCompressed%5D=false&StopIfWin=false&__RequestVerificationToken={6}&SerialNumber={7}&Guid={8}";
                                str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), this.GetRXWZString(plan.RXWZ), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), str6 });
                                HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime1, "UTF-8", true);
                            }
                            else
                            {
                                string format = "\"BetTypeCode\":{0},\"BetTypeName\":\"\",\"Number\":\"{1}\",\"Position\":\"{4}\",\"Unit\":{2},\"Multiple\":{3},\"ReturnRate\":0,\"IsCompressed\":false,\"CompressedNumber\":\"\"";
                                format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetRXWZString(plan.RXWZ) });
                                format = "{" + format + "}";
                                str7   = "\"LotteryGameID\":{0},\"SerialNumber\":\"{1}\",\"Bets\":[{2}],\"Schedules\":[],\"StopIfWin\":false,\"Guid\":\"{3}\"";
                                str7   = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), format, str6 });
                                str7   = "{" + str7 + "}";
                                HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime1, "UTF-8", true);
                            }
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                            if (!(flag || !this.CheckBreakConnect(pResponsetext)))
                            {
                                AppInfo.PTInfo.PTIsBreak = true;
                            }
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #4
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            string        str7;
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            int           num           = plan.FNNumber(str4);
                            string        pResponsetext = "";
                            string        str6          = Guid.NewGuid().ToString();
                            if (this.CheckLotteryIsVR(plan.Type))
                            {
                                str7 = "LotteryGameID={0}&IssueSerialNumber=&Bets%5B0%5D%5BBetTypeCode%5D={1}&Bets%5B0%5D%5BBetTypeName%5D=&Bets%5B0%5D%5BNumber%5D={2}&Bets%5B0%5D%5BPosition%5D={3}&Bets%5B0%5D%5BUnit%5D={4}&Bets%5B0%5D%5BMultiple%5D={5}&Bets%5B0%5D%5BIsCompressed%5D=false&StopIfWin=false&__RequestVerificationToken={6}&SerialNumber={7}&Guid={8}";
                                str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList(plan.Type, pTNumberList, plan.Play, null), this.GetRXWZString1(plan.Type, plan.RXWZ), plan.Money, Convert.ToInt32(plan.AutoTimes(str4, true)), base.Token, this.GetBetsExpect(plan.CurrentExpect, ""), str6 });
                                HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true);
                            }
                            else
                            {
                                str7 = "(\"success\":true,\"fail\":false,\"code\":\"1\",\"message\":null,\"data\":(\"LotteryId\":{0},\"Issuo\":\"{1}\",\"WinIsStop\":true,\"name\":\"{2}\",\"ChaseNum\":0,\"BetNumList\":[(\"Name\":\"{3}\",\"PlayId\":{4},\"Multiple\":{5},\"Pattern\":{6},\"Position\":\"{10}\",\"Quantity\":\"{7}\",\"Amount\":{8},\"Content\":\"{9}\")],\"ChaseNumList\":[],\"BetPwd\":null),\"extend\":null)";
                                str7 = string.Format(str7, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), base.UserID, this.GetPlayString(plan.Play), this.GetPlayMethodID(plan.Type, plan.Play), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, num, plan.AutoTotalMoney(str4, true), this.GetNumberList(plan.Type, pTNumberList, plan.Play, null), this.GetRXWZString1(plan.Type, plan.RXWZ) }).Replace("(", "{").Replace(")", "}");
                                HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", str7, lotteryLine, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            }
                            flag = this.CheckReturn(pResponsetext, true);
                            if (flag)
                            {
                                string str8 = CommFunc.GetIndexString(pResponsetext, "\"data\":", ",", 0);
                                AppInfo.Account.BankBalance = Convert.ToDouble(str8);
                            }
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #5
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     if (base.Prize == "")
     {
         string pUrl          = $"{this.GetLine()}/bets/load-data/{this.GetBetsLotteryID(pType)}";
         string indexLine     = this.GetIndexLine();
         string pResponsetext = "";
         HttpHelper.GetResponse1(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         if (pResponsetext != "")
         {
             base.Prize = CommFunc.GetIndexString(pResponsetext, "\"bet_max_prize_group\":", ",", 0).Replace("\"", "");
         }
     }
 }
Beispiel #6
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string indexLine       = this.GetIndexLine();
         string pResponsetext   = "";
         HttpHelper.GetResponse1(ref pResponsetext, accountsMemLine, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         string str4 = pResponsetext;
         AppInfo.Account.BankBalance = Convert.ToDouble(str4);
     }
     catch
     {
     }
 }
Beispiel #7
0
        public bool GetVRData(ConfigurationStatus.LotteryType pType, ref string pVRData)
        {
            string indexLine     = this.GetIndexLine();
            string pUrl          = $"{this.GetLine()}/api/vr/vrbet";
            string pResponsetext = "";
            string pData         = string.Format("(\"data\":\"{0}\")", "").Replace("(", "{").Replace(")", "}");

            HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, indexLine, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("data=");

            if (flag)
            {
                pVRData = CommFunc.GetIndexString(pResponsetext, "data=", "\"", 0);
            }
            return(flag);
        }
Beispiel #8
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
     {
     }
 }
Beispiel #9
0
        public bool InputWeb(string pID, string pW, ref string pHint)
        {
            bool   flag          = false;
            string loginLine     = this.GetLoginLine();
            string pUrl          = this.GetLoginLine();
            string pResponsetext = "";
            string str4          = HttpUtility.UrlEncode(pW);
            string str5          = HttpUtility.UrlEncode(CommFunc.WebMD51(CommFunc.WebMD51(CommFunc.WebMD51(pID + pW))));
            string pData         = $"(username: {pID},password: {str5})".Replace("(", "{").Replace(")", "}");

            HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, loginLine, 0x2710, "UTF-8", true);
            flag = pResponsetext.Contains("\"isSuccess\":1");
            if (!flag)
            {
                pHint = CommFunc.UniconToString(CommFunc.GetIndexString(pResponsetext, "\"Msg\":\"", "\"", 0));
            }
            return(flag);
        }
Beispiel #10
0
        public bool GetVRData(ConfigurationStatus.LotteryType pType, ref string pVRData)
        {
            string indexLine     = this.GetIndexLine();
            string pUrl          = $"{this.GetLine()}/api/vr/vrbet";
            string pResponsetext = "";
            string pSource       = "5d000008003100000000000000003d8888865474ae395314711ece3cc6b332621a8f3fc95146e2206e2ecfc2ccb6bd89f2816db97ddb44c13544d9e876d0fad3d7bfffda8f70003ffd8861928c49c1e6de7e25180f05f0";
            string str6          = CommFunc.LZMAEncode(CommFunc.LZMADecode(pSource));
            string pData         = $"(data:{str6})".Replace("(", "{").Replace(")", "}");

            HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, indexLine, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("data=");

            if (flag)
            {
                pVRData = CommFunc.GetIndexString(pResponsetext, "data=", "\"", 0);
            }
            return(flag);
        }
Beispiel #11
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         if (!this.CheckLotteryIsVR(pType))
         {
             string accountsMemLine = this.GetAccountsMemLine(pType);
             string indexLine       = this.GetIndexLine();
             string pResponsetext   = "";
             string pData           = $"(data:{base.UserID})".Replace("(", "{").Replace(")", "}");
             HttpHelper.GetResponse1(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
             string str5 = CommFunc.GetIndexString(pResponsetext, "\"data\":", ",", 0);
             AppInfo.Account.BankBalance = Convert.ToDouble(str5);
         }
     }
     catch
     {
     }
 }
Beispiel #12
0
        public bool InputWeb(string pID, string pW, ref string pHint)
        {
            bool   flag          = false;
            string loginLine     = this.GetLoginLine();
            string pUrl          = this.GetLine() + "/wps/session/login/unsecure";
            string pResponsetext = "";
            string str4          = pW;
            string pData         = $"(username:{pID},password:{str4})".Replace("(", "{").Replace(")", "}");

            HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, loginLine, 0x2710, "UTF-8", true);
            flag = pResponsetext.Contains("\"success\":true");
            if (!flag)
            {
                pHint = CommFunc.GetIndexString(pResponsetext, "<div class=\"error \">", "</div>", 0).Replace("\r\n", "").Trim();
                return(flag);
            }
            HttpHelper.BetsTokenKey   = "Authorization";
            HttpHelper.BetsTokenValue = CommFunc.GetIndexString(pResponsetext, "\"token\":\"", "\"", 0);
            return(flag);
        }
Beispiel #13
0
        public bool InputWeb(string pID, string pW, ref string pHint)
        {
            bool   flag          = false;
            string loginLine     = this.GetLoginLine();
            string str2          = HttpUtility.UrlEncode(pW);
            string pUrl          = "https://hub888.zutuoke.com/api/account/login";
            string pResponsetext = "";
            string pData         = string.Format("(\"appId\":\"{2}\",\"deviceInfo\":\"{3}\",\"password\":\"{1}\",\"requestId\":\"\",\"token\":\"\",\"userId\":\"\",\"userName\":\"{0}\",\"versionCode\":\"\",\"sign\":\"{4}\")", new object[] { pID, str2, "9dd188703d5211e8b53d0efa63bdfc9c", "Redmi+Note+4X", "76a6282f86978dd93c942a857db7b6ee" }).Replace("(", "{").Replace(")", "}");

            HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, loginLine, base.BetsTime2, "UTF-8", true);
            flag = pResponsetext.Contains("\"code\":1");
            if (!flag)
            {
                pHint = CommFunc.GetIndexString(pResponsetext, "\"msg\":\"", "\"", 0);
                return(flag);
            }
            base.Token           = CommFunc.GetIndexString(pResponsetext, "\"token\":\"", "\"", 0);
            base.VerifyCodeToken = CommFunc.GetIndexString(pResponsetext, "\"user_id\":\"", "\"", 0);
            return(flag);
        }
Beispiel #14
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine  = this.GetBetsLine(plan.Type);
                string indexLine = this.GetIndexLine();
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            string        str7          = CommFunc.Random(0x3b9aca00, 0x77359400).ToString() + CommFunc.Random(100, 0x3e7);
                            string        str8          = CommFunc.Random(0x3e8, 0x270f).ToString();
                            string        format        = "(\"random\":\"{0}\",\"gameType\":\"{1}\",\"isTrace\":0,\"traceWinStop\":0,\"traceStopValue\":-1,\"nowstopTime\":\"\",\"showhand\":0,\"balls\":[(\"id\":{2},\"sdz\":0,\"ball\":\"{3}\",\"type\":\"{4}\",\"moneyunit\":{5},\"oneprice\":{6},\"multiple\":{7},\"num\":{8},\"playBonus\":\"{9}\",\"playRebate\":\"{10}\",\"restrictions\":{11})],\"ordersNumber\":\"\\u7B2C{12}\\u671F\",\"orders\":[(\"number\":\"{12}\",\"lotterytime\":\"\",\"issueCode\":\"{12}\",\"multiple\":1)],\"amount\":\"{13}\",\"onlyAmount\":\"{13}\",\"_quickbet\":0)";
                            format = CommFunc.LZMA7zipEncode(string.Format(format, new object[] { str7, this.GetPTLotteryName(plan.Type), str8, this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), this.GetPlayMethodID(plan.Type, plan.Play), plan.Money, "1", Convert.ToInt32(plan.AutoTimes(str4, true)), num, plan.Mode, "0", base.Rebate, this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true) }).Replace("(", "{").Replace(")", "}"));
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, indexLine, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #15
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            double        num2          = Convert.ToDouble(base.Rebate) * 20.0;
                            string        rXWZString    = this.GetRXWZString(plan.RXWZ, plan.Play);
                            string        str7          = CommFunc.Random(0x2710, 0x1869f).ToString();
                            string        format        = "(\"amount\":{0},\"gameType\":\"{1}\",\"isTrace\":0,\"traceWinStop\":0,\"balls\":[(\"selectPosition\":\"{2}\",\"selectMedia\":\"{3}\",\"id\":\"{4}\",\"ball\":\"{5}\",\"type\":\"{6}\",\"moneyunit\":\"{7}\",\"multiple\":\"{8}\",\"num\":\"{9}\",\"graduationCount\":\"{10}\")],\"orders\":[(\"number\":\"{11}\",\"issueCode\":\"{11}\",\"multiple\":1)])";
                            format = string.Format(format, new object[] { plan.AutoTotalMoney(str4, true), this.GetBetsLotteryID(plan.Type), rXWZString, rXWZString, str7, this.GetNumberList1(pTNumberList, plan.Play, null), this.GetPlayMethodID(plan.Type, plan.Play), plan.Money / 2.0, Convert.ToInt32(plan.AutoTimes(str4, true)), num, num2, this.GetBetsExpect(plan.CurrentExpect, "") }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime4, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #16
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         if (base.Prize == "")
         {
             string pUrl          = this.GetLine() + "/api/openapi/getBonus";
             string lotteryLine   = this.GetLotteryLine(pType, false);
             string pResponsetext = "";
             string pData         = string.Format("(\"data\":\"{0}\")", "1-50").Replace("(", "{").Replace(")", "}");
             HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
             if (pResponsetext.Contains("奖金或赔率"))
             {
                 base.Prize = CommFunc.GetIndexString(pResponsetext, "\"data\":", ",", 0);
             }
         }
     }
     catch
     {
     }
 }
Beispiel #17
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = base.Prize;
                            List <string> list2         = CommFunc.SplitString(this.GetPlayMethodID(plan.Type, plan.Play), "-", -1);
                            string        format        = "(\"gameId\":{0},\"currentNumero\":\"{1}\",\"winningStop\":false,\"abandoning\":false,\"betCartAmountSum\":\"{2}\",\"chase\":false,\"device\":\"WEB\",\"orderType\":{3},\"quickChase\":false,\"prizeModeId\":{4},\"bettingSlipString\":\"{5}~{6}~{7}~{8}~{9}~{10}~1\")";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true), "1", "1", this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), list2[0], plan.Unit, prize, Convert.ToInt32(plan.AutoTimes(str4, true)), list2[1] }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #18
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = this.GetPrize(plan.Type, plan.Play);
                            string        format        = "(\"IsChase\":false,\"Issue\":\"{0}\",\"IsAllIn\":false,\"LstOrder\":[(\"PlayType\":\"{1}\",\"Codes\":\"{2}\",\"IsZip\":\"false\",\"Model\":\"{3}\",\"MoneyUnit\":\"{4}\",\"Multiple\":\"{5}\")],\"LotteryType\":{6})";
                            format = string.Format(format, new object[] { this.GetBetsExpect(plan.CurrentExpect, ""), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), "0.0", plan.Unit + 3, Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetBetsLotteryID(plan.Type) }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #19
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
     {
     }
 }
Beispiel #20
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            string        prize         = base.Prize;
                            string        format        = "[(\"lotteryID\":\"{0}\",\"gameID\":\"{1}\",\"betNum\":\"{2}\",\"betCount\":\"{3}\",\"betAmount\":\"{4}\",\"mode\":\"{5}\",\"multiCount\":\"{6}\",\"unit\":\"{7}\",\"issueNO\":\"{8}\",\"bonusAmount\":\"{9}\",\"subID\":\"{10}\")]";
                            format = string.Format(format, new object[] { this.GetPTLotteryName(plan.Type), this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, plan.RXWZ), num, plan.AutoTotalMoney(str4, true), prize, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Money, this.GetBetsExpect(plan.CurrentExpect, ""), plan.Mode, this.GetRXWZString1(plan.RXWZ, plan.Play) }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #21
0
        public bool LoginWeb(string pID, string pW, ref string pHint)
        {
            string line          = this.GetLine();
            string pUrl          = this.GetLine() + "/api/openapi/getBalance";
            string pResponsetext = "";
            string pData         = string.Format("(\"data\":\"{0}\")", this.UserID).Replace("(", "{").Replace(")", "}");

            HttpHelper.BetsTokenKey   = "token";
            HttpHelper.BetsTokenValue = pW;
            HttpHelper.GetResponse1(ref pResponsetext, pUrl, "POST", pData, line, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("\"success\":true");

            if (!flag)
            {
                pHint = CommFunc.GetIndexString(pResponsetext, "\"message\":\"", "\"", 0);
                if ((pHint.Contains("不正确的数据") || pHint.Contains("值不能为 null")) || pHint.Contains("Unexpected character encountered while parsing value"))
                {
                    pHint = "挂机令牌不正确!";
                }
            }
            return(flag);
        }
Beispiel #22
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine = this.GetBetsLine(plan.Type);
                string pReferer = this.GetBetsLine(plan.Type);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = plan.FNNumber(str4);
                            double        num2          = Convert.ToDouble(base.Rebate) * 10.0;
                            string        format        = "(\"LotteryCode\":\"{0}\",\"BettingCount\":{1},\"GraduationCount\":{2},\"IssueNo\":\"{3}\",\"Multiple\":{4},\"LotteryPlayDetailCode\":\"{5}\",\"SelectMedian\":\"{6}\",\"IsChaseNo\":false,\"BettingNumber\":\"{7}\",\"BettingInfoIssueList\":[(\"IssueNo\":\"{3}\",\"Multiple\":{4},\"PerPrice\":{8})],\"RuleName\":\"{9}\",\"BettingMoney\":\"{10}\",\"BuyIssueCount\":{11})";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), num, num2, this.GetBetsExpect(plan.CurrentExpect, ""), Convert.ToInt32(plan.AutoTimes(str4, true)), this.GetPlayMethodID(plan.Type, plan.Play), this.GetRXWZString(plan.RXWZ, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), plan.Money, this.GetPlayString(plan.Play), plan.AutoTotalMoney(str4, true), "1" }).Replace("(", "{").Replace(")", "}");
                            HttpHelper.GetResponse1(ref pResponsetext, betsLine, "POST", format, pReferer, base.BetsTime4, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }