// Token: 0x060000A1 RID: 161 RVA: 0x00006424 File Offset: 0x00004624
        private void InRoomGetGuid(HyAccount account)
        {
            this.Prepace(account);
            Console.Title = "到房间逛一下 " + Console.Title;
            base.OneByOneTaskTryErr(new Action <IWebDriver>(base.HySeleniumMgr.InRoom), base.HySeleniumMgr);
            Console.Title = "发送弹幕 " + Console.Title;
            base.OneByOneTaskTryErr(new Action <IWebDriver, string>(base.HySeleniumMgr.SendDanWu), base.HySeleniumMgr, "我来拉 6666");
            base.GetCookiesAndSaveToDb(account);
            string jqmStr = SelementHelper.GetJqmStr(base.HySeleniumMgr.WebDriver, Array.Empty <object>());

            XTrace.WriteLine("获取到的 机器码" + jqmStr);
            account.JiQiMa = (jqmStr ?? account.JiQiMa);
            account.Save();
        }
        // Token: 0x0600009F RID: 159 RVA: 0x00005FBC File Offset: 0x000041BC
        private void ProcessOneZh(HyAccount account)
        {
            this.Prepace(account);
            base.ZHInitCaoZuo();
            Console.Title = "随机点击一个分类 " + Console.Title;
            base.OneByOneTaskTryErr(new Action <IWebDriver>(base.HySeleniumMgr.RandomOpenFeiLei), base.HySeleniumMgr);
            Console.Title = "到房间逛一下 " + Console.Title;
            base.OneByOneTaskTryErr(new Action <IWebDriver>(base.HySeleniumMgr.InRoom), base.HySeleniumMgr);
            Console.Title = "发送弹幕 " + Console.Title;
            base.OneByOneTaskTryErr(new Action <IWebDriver, string>(base.HySeleniumMgr.SendDanWu), base.HySeleniumMgr, "我来拉 6666");
            bool subscribe = XmlConfig <SeleniumConfig> .Current.Subscribe;

            if (subscribe)
            {
                Console.Title = "订阅 " + Console.Title;
                base.OneByOneTaskTryErr(new Action <IWebDriver>(base.HySeleniumMgr.Subscribe), base.HySeleniumMgr);
            }
            bool sendHyLiangGift = XmlConfig <SeleniumConfig> .Current.SendHyLiangGift;

            if (sendHyLiangGift)
            {
                Console.Title = "发送虎粮 " + Console.Title;
                base.OneByOneTaskTryErr(new Action <IWebDriver, int>(base.HySeleniumMgr.SendGift), base.HySeleniumMgr, 4);
            }
            bool lingTask = XmlConfig <SeleniumConfig> .Current.LingTask;

            if (lingTask)
            {
                Console.Title = "领任务 " + Console.Title;
                base.OneByOneTaskTryErr(new Action <IWebDriver>(base.HySeleniumMgr.TouXiangTask), base.HySeleniumMgr);
            }
            bool lingBaoXiang = XmlConfig <SeleniumConfig> .Current.LingBaoXiang;

            if (lingBaoXiang)
            {
                Console.Title = "领宝箱 " + Console.Title;
                base.OneByOneTaskTryErr(new Action <IWebDriver>(base.HySeleniumMgr.BaoXiangShow), base.HySeleniumMgr);
            }
            base.GetCookiesAndSaveToDb(account);
            string jqmStr = SelementHelper.GetJqmStr(base.HySeleniumMgr.WebDriver, Array.Empty <object>());

            XTrace.WriteLine("获取到的 机器码" + jqmStr);
            account.JiQiMa = (jqmStr ?? account.JiQiMa);
            account.Save();
        }
        private bool OneReg()
        {
            bool flag;

            FiddlerProxyLogic.GetProxy(null);
            base.GeRegJqm();
            base.HySeleniumMgr = new FiddlerHandle.AutoWeb.HySeleniumMgr();
            MobileMgr   mobileMgr = new MobileMgr(this.ptType);
            MobileModel mobilenum = null;

            while (true)
            {
                mobilenum = mobileMgr.GetMobilenum(null);
                if ((mobilenum == null ? false : !mobilenum.PhoneNumber.IsNullOrWhiteSpace()))
                {
                    break;
                }
                XTrace.WriteLine("手机号码获取不到!~~");
            }
            ConvertMy.toInt(mobilenum.PhoneNumber.Cut(3, null));
            XTrace.WriteLine(string.Concat("合适的手机号码 ", mobilenum.PhoneNumber));
            HyAccount acount = HyAccount.FindByPhone(mobilenum.PhoneNumber);

            if ((acount == null ? true : acount.Phone.IsNullOrWhiteSpace()))
            {
                base.SetPhoneCodeCallBack(mobileMgr, mobilenum);
                base.HySeleniumMgr.ClearCach(mobilenum.PhoneNumber);
                string password = base.CratePasswor();
                bool   ret      = base.HySeleniumMgr.QuickRegisterHy(mobilenum.PhoneNumber, password, mobilenum.CountryCode);
                if (ret)
                {
                    HyAccount hyAccount = new HyAccount()
                    {
                        UserName = mobilenum.PhoneNumber,
                        UserPass = password,
                        PiHao    = XmlConfig <SeleniumConfig> .Current.PiHao,
                        Enable   = true,
                        RegType  = RegType.HyKuaiSu,
                        BeiZhu   = "测试第六批->www.huya.com 页面登录成功后自动弹出完善资料页面,谷歌浏览器自动化操作快速注册,过极验验证,过检测驱动"
                    };
                    hyAccount.SaveModel(mobilenum);
                    DateTime now = TimerX.Now;
                    hyAccount.CreateTime = now;
                    hyAccount.Save();
                    string jqmStr = SelementHelper.GetJqmStr(base.HySeleniumMgr.WebDriver, Array.Empty <object>());                   //机器码处理
                    hyAccount.JiQiMa     = jqmStr;
                    hyAccount.UpdateTime = now.AddDays(-1);
                    hyAccount.Save();
                    mobileMgr.reslut(mobilenum.PhoneNumber, true);
                    XTrace.WriteLine(string.Concat(new string[] { "快速注册成功 ", hyAccount.UserName, " 密码:", hyAccount.UserPass, "  还没登录信息,需要运行另一个任务取得登录信息" }));
                    base.HySeleniumMgr.GetPhoneSms = (string phone, string quHao) => {
                        string      str;
                        MobileModel mobe = mobileMgr.GetMobilenum(hyAccount.Phone);
                        if ((mobe == null ? false : !mobe.PhoneNumber.IsNullOrWhiteSpace()))
                        {
                            string sms = MobileMgr.GetYzm(mobileMgr.getVcodeAndHoldMobilenum(mobe), 6);
                            if (sms.IsNullOrWhiteSpace())
                            {
                                mobileMgr.cancelSMSRecv(mobilenum.PhoneNumber);
                            }
                            str = sms;
                        }
                        else
                        {
                            if ((mobe != null ? true : (mobe.Ex1.IsNullOrWhiteSpace() ? false : mobe.Ex1.IndexOf("没有可用号码") != -1)))
                            {
                                hyAccount.PhoneEx1 = mobe.Ex1;
                                hyAccount.Save();
                            }
                            str = null;
                        }
                        return(str);
                    };
                    try
                    {
                        int i = 0;
                        while (i < 5)
                        {
                            Thread.Sleep(5000);
                            base.HySeleniumMgr.WanShangZhiLiao(base.HySeleniumMgr.WebDriver);
                            if (!base.HySeleniumMgr.HasLogin(base.HySeleniumMgr.WebDriver))
                            {
                                base.HySeleniumMgr.LoginHy(hyAccount.UserName, hyAccount.UserPass, base.HySeleniumMgr.WebDriver);
                                i++;
                            }
                            else
                            {
                                break;
                            }
                        }
                    }
                    catch (Exception exception)
                    {
                        XTrace.WriteLine(string.Concat("执行登录出错 ", exception.ToString()));
                    }
                    base.ZHInitCaoZuo();
                    if (XmlConfig <SeleniumConfig> .Current.ZhuCeInRoom)
                    {
                        base.ZhuCeLoginAfter();
                    }
                    base.GetCookiesAndSaveToDb(hyAccount);
                    flag = ret;
                }
                else
                {
                    Thread.Sleep(900);
                    mobileMgr.GetMobilenum(mobilenum.PhoneNumber);
                    mobileMgr.addIgnoreList(mobilenum);
                    mobileMgr.cancelSMSRecv(mobilenum.PhoneNumber);
                    XTrace.WriteLine("注册失败");
                    mobileMgr.reslut(mobilenum.PhoneNumber, false);
                    string jqmStr1 = SelementHelper.GetJqmStr(base.HySeleniumMgr.WebDriver, Array.Empty <object>());
                    XTrace.WriteLine(string.Concat("测试 获取到的机器码为 ", jqmStr1));
                    flag = false;
                }
            }
            else
            {
                mobileMgr.addIgnoreList(mobilenum);
                mobileMgr.cancelSMSRecv(mobilenum.PhoneNumber);
                XTrace.WriteLine("手机号码已经注册!~~");
                mobileMgr.reslut(mobilenum.PhoneNumber, false);
                flag = false;
            }
            return(flag);
        }