コード例 #1
0
        public override string LoginLotteryWeb(ConfigurationStatus.LotteryType pType, string pInfo = "")
        {
            string lotteryLine   = this.GetLotteryLine(pType, false);
            string indexLine     = this.GetIndexLine();
            string pResponsetext = "";

            HttpHelper.GetResponse2(ref pResponsetext, lotteryLine, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
            return(pResponsetext);
        }
コード例 #2
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string indexLine       = this.GetIndexLine();
         string pResponsetext   = "";
         HttpHelper.GetResponse2(ref pResponsetext, accountsMemLine, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         string str4 = CommFunc.GetIndexString(pResponsetext, "\"available\" : \"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(str4);
     }
     catch
     {
     }
 }
コード例 #3
0
        public bool InputWeb(string pID, string pW, ref string pHint)
        {
            bool   flag          = false;
            string loginLine     = this.GetLoginLine();
            string str2          = CommFunc.WebMD51(pW);
            string pUrl          = $"{this.GetLine()}/sso/login?way=pwd&from=portal&cn={pID}&appId=5&password={str2}&capchaCode=&_={DateTime.Now.ToOADate()}";
            string pResponsetext = "";

            HttpHelper.GetResponse2(ref pResponsetext, pUrl, "GET", string.Empty, loginLine, 0x2710, "UTF-8", true);
            flag = pResponsetext.Contains("\"msg\":\"登录成功\"");
            if (!flag)
            {
                pHint = CommFunc.GetIndexString(pResponsetext, "\"msg\":\"", "\"", 0);
            }
            return(flag);
        }
コード例 #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
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            string        format        = "gameId={0}&isTrace=0&traceWinStop=1&traceStopValue=1&orders%5B{1}%5D=1&amount={2}&ballstr=%5B%7B%22jsId%22%3A{3}%2C%22wayId%22%3A{4}%2C%22ball%22%3A%22{5}%22%2C%22viewBalls%22%3A%22%22%2C%22num%22%3A{6}%2C%22type%22%3A%22{7}%22%2C%22onePrice%22%3A%22{8}%22%2C%22moneyunit%22%3A%22{9}%22%2C%22multiple%22%3A{10}%2C%22prizeGroup%22%3A%22{11}%22%7D%5D&orderstr=%7B%22{1}%22%3A{12}%7D";
                            int           num           = plan.FNNumber(str4);
                            int           num2          = 2;
                            string        prize         = base.Prize;
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), this.GetBetsExpect(plan.CurrentExpect, ""), plan.AutoTotalMoney(str4, true), "1", this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num, this.GetPlayString(plan.Play), num2, plan.Money / ((double)num2), Convert.ToInt32(plan.AutoTimes(str4, true)), prize, "1" });
                            HttpHelper.GetResponse2(ref pResponsetext, betsLine, "POST", format, lotteryLine, base.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }