Beispiel #1
0
        public override string GetPTHint(string pResponseText)
        {
            string str = "";

            if (this.CheckReturn(pResponseText, false))
            {
                return("投注成功");
            }
            str = CommFunc.GetIndexString(pResponseText, "\"error\":\"", "\"", 0);
            if (str == "")
            {
                str = CommFunc.GetIndexString(pResponseText, "\"ErrorMessage\":\"", "\"", 0);
            }
            return(str);
        }
Beispiel #2
0
        public bool GetVRData(ConfigurationStatus.LotteryType pType, ref string pVRData)
        {
            string indexLine     = this.GetIndexLine();
            string pUrl          = $"{this.GetLine()}/vr/login";
            string pResponsetext = "";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, base.BetsTime1, "UTF-8", true);
            bool flag = pResponsetext.Contains("data=");

            if (flag)
            {
                pVRData = CommFunc.GetIndexString(pResponsetext, "data=", "\"", 0);
            }
            return(flag);
        }
Beispiel #3
0
        public static DataTable GetDrive(string moduleType)
        {
            DataTable dtSource = GetXmlToTable();
            int       rec      = dtSource.Rows.Count;

            for (int i = rec - 1; i >= 0; i--)
            {
                if (!CommFunc.ConvertDBNullToString(dtSource.Rows[i]["type"]).Equals(moduleType))
                {
                    dtSource.Rows[i].Delete();
                }
            }
            dtSource.AcceptChanges();
            return(dtSource);
        }
Beispiel #4
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string indexLine       = this.GetIndexLine();
         string pResponsetext   = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
         string str4 = CommFunc.GetIndexString(pResponsetext, "\"data\":\"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(str4);
     }
     catch
     {
     }
 }
Beispiel #5
0
        /// <summary>
        /// 数据处理
        /// </summary>
        /// <param name="module_id">设备ID号</param>
        /// <param name="moduleAddr">设备地址</param>
        /// <param name="fun_id">功能ID号</param>
        /// <param name="dataVal">采集数</param>
        /// <param name="collectTime">采集时间</param>
        /// <returns></returns>
        public int DataProcess(int module_id, string moduleAddr, int fun_id, string dataVal, DateTime collectTime, out string msg, int?timeOut = null)
        {
            int       errcode  = 0;
            object    parmas   = new { _mLedger = this.Ledger, _mModule_id = module_id, _mModuleAddr = moduleAddr, _mFun_id = fun_id, _mCollectTime = collectTime, _mDataVal = dataVal };
            DataTable dtSource = SQLHelper.ExecuteStoredProcedure("sp_DataProcess", parmas, timeOut);

            if (dtSource.Rows.Count == 0)
            {
                msg = "处理无结果返回";
                return(-1);
            }
            errcode = CommFunc.ConvertDBNullToInt32(dtSource.Rows[0]["ErrCode"]);
            msg     = CommFunc.ConvertDBNullToString(dtSource.Rows[0]["ErrTxt"]);
            return(errcode);
        }
Beispiel #6
0
        public override string GetBetsExpect(string pExpect, string pLotteryID = "")
        {
            string iD   = AppInfo.Current.Lottery.ID;
            string str2 = CommFunc.ConvertBetsExpect(pExpect, iD, false, false, false);

            if (!CommFunc.CheckIsSkipLottery(iD))
            {
                str2 = str2.Substring(2);
            }
            if ((((iD == "GD11X5") || (iD == "SD11X5")) || ((iD == "SH11X5") || (iD == "JX11X5"))) || (iD == "AH11X5"))
            {
                str2 = str2.Replace("-0", "");
            }
            return(str2);
        }
Beispiel #7
0
        public bool GetVRData(ConfigurationStatus.LotteryType pType, ref string pVRData)
        {
            string indexLine     = this.GetIndexLine();
            string pUrl          = $"{this.GetLine()}/yx/u/api/game/vr/go";
            string pResponsetext = "";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, indexLine, base.BetsTime1, "UTF-8", true);
            bool flag = pResponsetext.Contains("竞速娱乐 VR") || (pResponsetext == "");

            if (flag)
            {
                base.Token = CommFunc.GetIndexString(pResponsetext, "value=\"", "\"", pResponsetext.IndexOf("__RequestVerificationToken"));
            }
            return(flag);
        }
Beispiel #8
0
        /// <summary>
        /// 增加设备充值命令到数据库中
        /// </summary>
        /// <param name="module_id"></param>
        /// <param name="moduleAddr"></param>
        /// <param name="payVal"></param>
        /// <returns></returns>
        public long AddPayCommmand(int module_id, string moduleAddr, decimal payVal, V0Fun funType)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Clear();
            strSql.Append("insert into v2_command(");
            strSql.Append("CDate,Ledger,Co_id,Module_id,ModuleAddr,Fun_id,FunType,DataValue,Create_by,Create_dt,ErrCode)");
            strSql.Append("select now(),a.Ledger,a.Co_id,a.Module_id,a.ModuleAddr,ifnull(b.Fun_id,0),@FunType,@DataValue,@SysUid,now(),0");
            strSql.Append(" from vp_mdinfo as a left join v0_fun as b on a.Ledger=b.Ledger and a.Mm_id=b.Mm_id and b.FunType=@FunType");
            strSql.Append(" where a.Ledger=@Ledger and a.Module_id=@Module_id and a.ModuleAddr=@ModuleAddr;");
            strSql.Append("select last_insert_id();");
            object obj = SQLHelper.ExecuteScalar(strSql.ToString(), new { Ledger = this.Ledger, Module_id = module_id, ModuleAddr = moduleAddr, DataValue = Math.Abs(payVal).ToString(), FunType = funType.ToString(), SysUid = this.SysUid });

            return(CommFunc.ConvertDBNullToLong(obj));
        }
Beispiel #9
0
        public bool LoginWeb()
        {
            string pReferer      = "";
            string loginLine     = this.GetLoginLine();
            string pResponsetext = "";

            HttpHelper.GetResponse(ref pResponsetext, loginLine, "GET", string.Empty, pReferer, base.BetsTime1, "UTF-8", true);
            bool flag = pResponsetext.Contains("十里桃花");

            if (flag)
            {
                base.Token = CommFunc.GetIndexString(pResponsetext, "value=\"", "\"", pResponsetext.IndexOf("__RequestVerificationToken"));
            }
            return(flag);
        }
Beispiel #10
0
        private void Ckb_TBCopy_Click(object sender, EventArgs e)
        {
            string bTString = this.GetBTString();

            CommFunc.CopyText(bTString);
            if (bTString == "")
            {
                CommFunc.PublicMessageAll("没有推波可以复制!", true, MessageBoxIcon.Asterisk, "");
            }
            else
            {
                CommFunc.CopyText(bTString);
                CommFunc.PublicMessageAll("复制成功!", true, MessageBoxIcon.Asterisk, "");
            }
        }
Beispiel #11
0
        public override string GetPTHint(string pResponseText)
        {
            string str = "";

            if (this.CheckReturn(pResponseText, false))
            {
                return("投注成功");
            }
            str = CommFunc.GetIndexString(pResponseText, "\"message\":\"", "\"", 0);
            if (str.Contains("balance not enough"))
            {
                str = "余额不足";
            }
            return(str);
        }
Beispiel #12
0
        public bool LoginVRWeb(ConfigurationStatus.LotteryType pType, string pVRData)
        {
            string pReferer      = "";
            string pUrl          = $"{this.GetVRLine()}/Account/LoginValidate?version=1.0&id=CTT&data={pVRData}";
            string pResponsetext = "";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("竞速娱乐 VR") || (pResponsetext == "");

            if (flag)
            {
                base.Token = CommFunc.GetIndexString(pResponsetext, "value=\"", "\"", pResponsetext.IndexOf("__RequestVerificationToken"));
            }
            return(flag);
        }
Beispiel #13
0
        public override string GetPTHint(string pResponseText)
        {
            string str = "";

            if (this.CheckReturn(pResponseText, false))
            {
                return("投注成功");
            }
            str = CommFunc.UniconToString(CommFunc.GetIndexString(pResponseText, "\"remark\": \"", "\"", 0));
            if (str == "")
            {
                str = CommFunc.UniconToString(CommFunc.GetIndexString(pResponseText, "\"message\": \"", "\"", 0).Replace("!", ""));
            }
            return(str);
        }
Beispiel #14
0
        public override string GetPlayMethodID(ConfigurationStatus.LotteryType pType, string playName)
        {
            List <int> pIndexList = new List <int>();

            if (CommFunc.CheckPlayIsRX(playName))
            {
                int count = CommFunc.GetPlayInfo(playName).IndexList.Count;
                for (int i = 0; i < count; i++)
                {
                    pIndexList.Add(i);
                }
            }
            ConfigurationStatus.PTPrizeGroup group = this.GetPlayMethodGroup(pType, playName, pIndexList);
            return((group == null) ? "" : group.PlayID);
        }
Beispiel #15
0
        /// <summary>
        /// 下发命令数据
        /// </summary>
        /// <param name="tags"></param>
        /// <param name="dataValue"></param>
        /// <returns></returns>
        public APIRst SendVal(List <string> tags, string dataValue)
        {
            List <object> dd  = new List <object>();
            APIRst        rst = new APIRst()
            {
                rst = true
            };

            try
            {
                DataTable dtInfo = bll.GetTagInfo(string.Join(",", tags.ToArray()));
                foreach (var k in tags)
                {
                    DataRow[] arr = dtInfo.Select("LpszDbVarName='" + k + "'");
                    if (arr.Count() == 0)
                    {
                        dd.Add(new { tag = k, rst = false, msg = "没有此采集点" });
                        continue;
                    }
                    CommandVModel cmd = ModelHandler <CommandVModel> .FillModel(arr[0]);

                    cmd.Action        = 1;
                    cmd.LpszDbVarName = CommFunc.ConvertDBNullToString(arr[0]["TagName"]);
                    cmd.DataValue     = dataValue;
                    cmd.IsNDb         = true;
                    bll.UpdateMapDataVal(cmd.Module_id, cmd.Fun_id, cmd.DataValue);
                    //
                    ListenVModel vm = new ListenVModel()
                    {
                        cfun = ListenCFun.cmd.ToString(), content = JsonHelper.Serialize(cmd)
                    };
                    string msg = "";
                    bool   rr  = CacheMgr.SendCollectVal(vm, out msg);
                    dd.Add(new { tag = k, rst = rr, msg = msg });
                }
                rst.data = dd;
            }
            catch (Exception ex)
            {
                rst.rst  = false;
                rst.data = "";
                rst.err  = new APIErr()
                {
                    code = -1, msg = ex.Message
                };
            }
            return(rst);
        }
Beispiel #16
0
        /// <summary>
        /// 发送采集数据
        /// </summary>
        /// <param name="vm"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        public static bool SendCollectVal(ListenVModel vm, out string msg)
        {
            bool rst = false;

            msg = "";
            try
            {
                if (start == false)
                {
                    //string ps1 = IniHepler.GetConfig(WebConfig.LpFileName, "Automatic", "Ip");
                    //string[] ar = ps1.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries);
                    //if (ar.Count() != 2)
                    //{
                    //    msg = "IP地址格式错误";
                    //    return false;
                    //}
                    //ip = CommFunc.ConvertDBNullToString(ar[0]);
                    //port = CommFunc.ConvertDBNullToInt32(ar[1]);
                    string ps1 = IniHepler.GetConfig(WebConfig.LpFileName, "Automatic", "Port");
                    port  = CommFunc.ConvertDBNullToInt32(ps1);
                    start = true;
                }
                /////////////////////////////////////////
                string    data         = JsonHelper.Serialize(vm);
                IPAddress host         = IPAddress.Parse(ip);
                Socket    clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                clientSocket.ReceiveTimeout = 1000;
                clientSocket.SendTimeout    = 1000;
                byte[] dd = System.Text.Encoding.Default.GetBytes(data);
                lock (CacheMgr.staticLocker)
                {
                    clientSocket.Connect(host, port);
                    clientSocket.Send(dd);
                    if (clientSocket.Connected)
                    {
                        clientSocket.Shutdown(SocketShutdown.Both);
                    }
                    clientSocket.Close();
                }
                rst = true;
            }
            catch (Exception ex)
            {
                FileLog.WriteLog("网络发送数据错误:" + ex.Message + ex.StackTrace);
                msg = ex.Message;
            }
            return(rst);
        }
Beispiel #17
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 = "";
                            double        num           = plan.AutoTotalMoney(str4, true);
                            if ((plan.UnitType == ConfigurationStatus.SCUnitType.Li) && (num < 0.2))
                            {
                                pHint = $"'data':'厘模式投注金额需大于等于{0.2}元'";
                                return(flag);
                            }
                            string str6   = CommFunc.CheckPlayIsDS(plan.Play) ? "input" : "digital";
                            string format = "%7B'type'%3A'{11}'%2C'methodid'%3A{0}%2C'codes'%3A'{1}'%2C'nums'%3A{2}%2C'times'%3A{3}%2C'money'%3A{4}%2C'mode'%3A{5}%2C'point'%3A'{6}'%2C'desc'%3A'{7}+{8}'%2C'position'%3A'{9}'%2C'curtimes'%3A'{10}'%7D";
                            int    num2   = plan.FNNumber(str4);
                            format = string.Format(format, new object[] { this.GetPlayMethodID(plan.Type, plan.Play), this.GetNumberList1(pTNumberList, plan.Play, null), num2, Convert.ToInt32(plan.AutoTimes(str4, true)), plan.AutoTotalMoney(str4, true), plan.Unit, "0", this.GetPlayString(plan.Play), this.GetNumberList2(pTNumberList, plan.Play), this.GetRXWZString(plan.RXWZ), "", str6 });
                            string str8  = "mainForm=mainForm&lotteryid={0}&flag=save&lt_sel_times={1}&lt_sel_modes={2}&lt_sel_dyprize={3}%7C{4}&lt_project%5B%5D={5}&lt_issue_start={6}&lt_total_nums={7}&lt_total_money={8}";
                            string prize = this.GetPrize(plan.Type, plan.Play);
                            str8 = string.Format(str8, new object[] { this.GetBetsLotteryID(plan.Type), Convert.ToInt32(plan.AutoTimes(str4, true)), plan.Unit, prize, base.Rebate, format, this.GetBetsExpect(plan.CurrentExpect, ""), num2, plan.AutoTotalMoney(str4, true) });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", str8, pReferer, AppInfo.PTInfo.BetsTime3, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #18
0
 private void Btn_BTImport_Click(object sender, EventArgs e)
 {
     if (this.Egv_TimesList.RowCount == 0)
     {
         CommFunc.PublicMessageAll("无法导入空的直线倍投!", true, MessageBoxIcon.Asterisk, "");
     }
     else
     {
         string        selectBTFN = this.GetSelectBTFN();
         List <string> bTList     = this.GetBTList();
         if (AppInfo.BTImport != null)
         {
             AppInfo.BTImport(selectBTFN, bTList);
         }
     }
 }
Beispiel #19
0
        public bool LoginWeb()
        {
            string pReferer      = "";
            string loginLine     = this.GetLoginLine();
            string pResponsetext = "";

            HttpHelper.GetResponse(ref pResponsetext, loginLine, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("侏罗纪");

            if (flag)
            {
                base.Token  = CommFunc.GetIndexString(pResponsetext, "value=\"", "\"", pResponsetext.IndexOf("_token"));
                base.Random = CommFunc.GetIndexString(pResponsetext, "value=\"", "\"", pResponsetext.IndexOf("_random"));
            }
            return(flag);
        }
Beispiel #20
0
        public ConfigurationStatus.PTPrizeGroup GetPlayMethodGroup(ConfigurationStatus.LotteryType pType, string playName, List <int> pIndexList)
        {
            ConfigurationStatus.PTPrizeGroup group = null;
            string playString = this.GetPlayString(playName);
            string rXWZString = this.GetRXWZString(pIndexList);

            if (CommFunc.CheckPlayIsRX(playName))
            {
                playString = string.Format(playString, rXWZString);
            }
            if (base.PlayMethodGroupDic.ContainsKey(playString))
            {
                group = base.PlayMethodGroupDic[playString];
            }
            return(group);
        }
Beispiel #21
0
        public void SetControlInfoByReg()
        {
            this.RegConfigPath = @"software\TUHAOPLUS\YXZXGJ\DlgConfig\永信在线挂机软件\" + base.Name;
            List <Control> list = new List <Control> {
                this
            };

            this.ControlList        = list;
            this.SpecialControlList = new List <Control>();
            foreach (CheckBox box in this.RangeList)
            {
                this.ControlList.Add(box);
            }
            CommFunc.SetFormUseingInfo(this.ControlList, this.RegConfigPath);
            CommFunc.SetSpecialControlInfo(this.SpecialControlList, this.RegConfigPath);
        }
Beispiel #22
0
        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="Uid">用户ID号</param>
        /// <returns></returns>
        public int DelUser(int Uid)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Clear();
            strSql.Append("select count(*)as cnt from sys_user where Ledger=@Ledger and Uid=@Uid and UserType=1");
            object obj = SQLHelper.ExecuteScalar(strSql.ToString(), new { Ledger = this.Ledger, Uid = Uid });

            if (CommFunc.ConvertDBNullToInt32(obj) > 0)
            {
                throw new Exception("系统用户不能删除!");
            }
            strSql.Clear();
            strSql.Append("delete from sys_user where Ledger=@Ledger and Uid=@Uid;");
            return(SQLHelper.Execute(strSql.ToString(), new { Ledger = this.Ledger, Uid = Uid }));
        }
Beispiel #23
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 #24
0
        /// <summary>
        /// 获取告警数据
        /// </summary>
        /// <returns></returns>
        public object GetPduAlarm(int co_id)
        {
            DataTable dtSource = dal.GetPduAlarm(co_id);
            int       mth = dtSource.Rows.Count;
            int       day = dtSource.Select("CDate=#" + DateTime.Now.ToString("yyyy-MM-dd", System.Globalization.DateTimeFormatInfo.InvariantInfo) + "#").Count();
            string    code = "", type = "", time = "", name = "";

            if (mth > 0)
            {
                code = CommFunc.ConvertDBNullToString(dtSource.Rows[0]["Module_id"]).PadLeft(5, '0') + CommFunc.ConvertDBNullToString(dtSource.Rows[0]["Fun_id"]).PadLeft(3, '0');
                type = CommFunc.ConvertDBNullToString(dtSource.Rows[0]["FunName"]) + "越限";
                time = CommFunc.ConvertDBNullToDateTime(dtSource.Rows[0]["CollectTime"]).ToString("yyyy-MM-dd");
                name = CommFunc.ConvertDBNullToString(dtSource.Rows[0]["ModuleName"]);
            }
            return(new { mth = mth, day = day, code = code, type = type, time = time, name = name });
        }
Beispiel #25
0
        /// <summary>
        /// 記事ページ ブラウザ起動処理 エンターキー
        /// </summary>
        private void FeedList_PreviewKeyDown(Object sender, KeyEventArgs e)
        {
            if (e.Key != Key.Return)
            {
                return;
            }

            if (sender is ListBox box)
            {
                if (box.SelectedValue is FeedItem feed)
                {
                    //CommFunc.StartBrowser(this.ChromePath, feed);
                    CommFunc.NavigateMyBrowser(feed);
                }
            }
        }
Beispiel #26
0
        public override string GetBetsExpect(string pExpect, string pLotteryID = "")
        {
            string iD   = AppInfo.Current.Lottery.ID;
            string str2 = CommFunc.ConvertBetsExpect(pExpect, iD, false, false, false);

            switch (iD)
            {
            case "XJSSC":
            case "SD11X5":
            case "GD11X5":
            case "JX11X5":
                str2 = str2.Replace("-0", "-");
                break;
            }
            return(str2);
        }
Beispiel #27
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string lotteryLine     = this.GetLotteryLine(pType, false);
         string pResponsetext   = "";
         string pData           = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"lotteryBalance\" : ", ",", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
     }
     catch
     {
     }
 }
Beispiel #28
0
        public bool GetLoginYZM()
        {
            string loginLine     = this.GetLoginLine();
            string pUrl          = this.GetLine() + "/Account/Captcha";
            string pResponsetext = "";
            string pData         = "CaptchaError=False";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, loginLine, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("/DefaultCaptcha/Generate?t=");

            if (flag)
            {
                base.VerifyCodeToken = CommFunc.GetIndexString(pResponsetext, "/DefaultCaptcha/Generate?t=", "\"", 0);
            }
            return(flag);
        }
Beispiel #29
0
        public override string GetRXWZString(List <int> pRXWZ)
        {
            string str = "";

            if (pRXWZ == null)
            {
                return(str);
            }
            List <int> pList = new List <int>();

            for (int i = 0; i < pRXWZ.Count; i++)
            {
                pList.Add(pRXWZ[i] + 1);
            }
            return(CommFunc.Join(pList, ","));
        }
Beispiel #30
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string indexLine       = this.GetIndexLine();
         string pResponsetext   = "";
         string pData           = $"__RequestVerificationToken={base.Token}";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         string str5 = CommFunc.GetIndexString(pResponsetext, "\"sscmoney\":\"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(str5);
     }
     catch
     {
     }
 }