Exemple #1
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           = $"token={base.Token}&user_id={base.VerifyCodeToken}&sign=";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, lotteryLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"balance\":\"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         if (base.Prize == "")
         {
             base.Rebate = CommFunc.GetIndexString(pResponsetext, "\"flevel_fd\":\"", "\"", 0);
             double num = 1800.0 + ((Convert.ToDouble(base.Rebate) * 2.0) * 10.0);
             base.Prize = num.ToString();
             if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
             {
                 base.Prize = (Convert.ToDouble(base.Prize) - 10.0).ToString();
             }
         }
     }
     catch
     {
     }
 }
Exemple #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
     {
     }
 }
Exemple #3
0
 public FrmDLDataInput(ConfigurationStatus.SCAccountData pAccountData, Dictionary <string, ConfigurationStatus.PTLine> pLineDic, bool pIsAdd)
 {
     this.InitializeComponent();
     this.AccountData = pAccountData;
     this.IsAdd       = pIsAdd;
     this.Btn_Ok.Text = pIsAdd ? "添加" : "保存";
     this.Text        = pIsAdd ? "添加代理信息" : "编辑代理信息";
     this.PTNameList  = CommFunc.GetDicKeyList <ConfigurationStatus.PTLine>(pLineDic);
     if (pIsAdd)
     {
         this.AccountData.Configuration.LoginPTList = this.PTNameList;
     }
     this.Tbl_DLLoginPT.Value   = this.AccountData.Configuration.LoginPTListViewString;
     this.Tbl_DLLoginCKPT.Value = this.AccountData.Configuration.GetLoginPTListViewString(this.PTNameList);
     this.Tbl_DLFNEdit.Visible  = this.AccountData.Configuration.FNEdit != "";
     if (!pIsAdd)
     {
         this.LoadDLData();
     }
     else
     {
         this.Tbl_DLID.Value = this.AccountData.AppCharName;
         this.Tbl_DLID.ValueFocus();
     }
 }
Exemple #4
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   = "";
             string pData           = "";
             HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
             if (this.CheckBreakConnect(pResponsetext))
             {
                 AppInfo.PTInfo.PTIsBreak = true;
             }
             else
             {
                 base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"h_u_balance\":\"", "\"", 0);
                 AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
             }
         }
     }
     catch
     {
     }
 }
Exemple #5
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string loginLine       = this.GetLoginLine();
         string pResponsetext   = "";
         string pData           = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, loginLine, 0x2710, "UTF-8", true);
         pResponsetext               = pResponsetext.Substring(pResponsetext.IndexOf("username"));
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"availableBalance\":", ",", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         if (base.Prize == "")
         {
             base.Prize = CommFunc.GetIndexString(pResponsetext, "\"code\":", ",", 0);
             if (Convert.ToDouble(base.Prize) > 1980.0)
             {
                 base.Prize = "1980";
             }
         }
     }
     catch
     {
     }
 }
Exemple #6
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           = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"lotteryMoney\":", ",", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         if (base.Prize == "")
         {
             base.Rebate = CommFunc.GetIndexString(pResponsetext, "\"locatePoint\":", ",", 0);
             if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
             {
                 base.Rebate = (Convert.ToDouble(base.Rebate) - 1.0).ToString();
             }
             base.Prize = (1700.0 + ((Convert.ToDouble(base.Rebate) * 2.0) * 10.0)).ToString();
         }
     }
     catch
     {
     }
 }
Exemple #7
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
     {
     }
 }
Exemple #8
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         if (!AppInfo.PTInfo.PTIsBreak)
         {
             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);
                     if (this.CheckBreakConnect(str3))
                     {
                         AppInfo.PTInfo.PTIsBreak = true;
                     }
                     else
                     {
                         string str5 = str3;
                         AppInfo.Account.BankBalance = Convert.ToDouble(str5);
                     }
                 }
             }
             else
             {
                 accountsMemLine = this.GetAccountsMemLine(pType);
                 indexLine       = this.GetIndexLine();
                 str3            = "";
                 str4            = "";
                 HttpHelper.GetResponse(ref str3, accountsMemLine, "POST", str4, indexLine, 0x2710, "UTF-8", true);
                 if (this.CheckBreakConnect(str3))
                 {
                     AppInfo.PTInfo.PTIsBreak = true;
                 }
                 else
                 {
                     base.BankBalance            = CommFunc.GetIndexString(str3, "\"h_u_balance\":\"", "\"", 0);
                     AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
                 }
             }
         }
     }
     catch
     {
     }
 }
Exemple #9
0
        public FrmDLUserLogin(ConfigurationStatus.SCAccountData pAccountData)
        {
            this.InitializeComponent();
            this.AccountData = pAccountData;
            List <Control> list = new List <Control> {
                this,
                this.Txt_LoginID,
                this.Txt_LoginPW
            };

            base.ControlList = list;
        }
Exemple #10
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, "\"available\" : \"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(str4);
     }
     catch
     {
     }
 }
Exemple #11
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
     {
     }
 }
Exemple #12
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           = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         string str5 = pResponsetext;
         AppInfo.Account.BankBalance = Convert.ToDouble(str5);
     }
     catch
     {
     }
 }
Exemple #13
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
     {
     }
 }
Exemple #14
0
 private void Btn_EditPW_Click(object sender, EventArgs e)
 {
     if (this.Txt_EditID.Text == "")
     {
         CommFunc.PublicMessageAll("输入会员账号不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_EditID.Focus();
     }
     else if (this.Txt_EditPW.Text == "")
     {
         CommFunc.PublicMessageAll("输入原始密码不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_EditPW.Focus();
     }
     else if (this.Txt_EditPW1.Text == "")
     {
         CommFunc.PublicMessageAll("输入新密码不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_EditPW1.Focus();
     }
     else if (!this.Txt_EditPW2.Text.Equals(this.Txt_EditPW1.Text))
     {
         CommFunc.PublicMessageAll("两次输入的密码不一致!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_EditPW2.Focus();
     }
     else
     {
         string pHint = "";
         ConfigurationStatus.SCAccountData pAccountData = new ConfigurationStatus.SCAccountData();
         if (SQLData.UserLogin(this.Txt_EditID.Text, this.Txt_EditPW.Text, this.MachineCode, pAccountData, ref pHint))
         {
             pAccountData.PW = this.Txt_EditPW1.Text;
             if (SQLData.EditUserRow(pAccountData))
             {
                 CommFunc.PublicMessageAll("修改密码成功!", true, MessageBoxIcon.Asterisk, "");
             }
             else
             {
                 CommFunc.PublicMessageAll("修改密码失败,请联系客服!", true, MessageBoxIcon.Asterisk, "");
             }
         }
         else
         {
             CommFunc.PublicMessageAll("修改密码失败,请联系客服!", true, MessageBoxIcon.Asterisk, "");
             this.Txt_EditID.SelectAll();
             this.Txt_EditID.Focus();
         }
     }
 }
Exemple #15
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string indexLine       = this.GetIndexLine();
         string pResponsetext   = "";
         string pSource         = "{\"id\":1}";
         pSource = this.GetEncode(pSource, false);
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pSource, indexLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"info\":\"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
     }
     catch
     {
     }
 }
Exemple #16
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           = "Model=User&Action=GetUserInfo&r=yes";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"U_Money\":\"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         string str5 = CommFunc.GetIndexString(pResponsetext, "\"U_RebateA\":\"", "\"", 0);
         base.Prize = (1700.0 + ((Convert.ToDouble(str5) * 2.0) * 10.0)).ToString();
     }
     catch
     {
     }
 }
Exemple #17
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           = $"token={base.Token}";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         string str5 = CommFunc.GetIndexString(pResponsetext, "\"balance\":", ",", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(str5) / 10000.0;
         base.Rebate = CommFunc.GetIndexString(pResponsetext, "\"userRebate\":", ",", 0);
         base.Prize  = (1700.0 + (Convert.ToDouble(base.Rebate) * 2.0)).ToString();
     }
     catch
     {
     }
 }
Exemple #18
0
        public FrmImageUserLogin(ConfigurationStatus.SCAccountData pAccountData)
        {
            this.InitializeComponent();
            this.AccountData = pAccountData;
            List <Control> list = new List <Control> {
                this,
                this.Txt_LoginID,
                this.Txt_LoginPW
            };

            this.ControlList = list;
            this.Text        = $"{"永信在线挂机软件"}-登录";
            base.Icon        = AppInfo.AppIcon32;
            List <Control> list2 = new List <Control> {
                this.Btn_Min,
                this.Btn_Close,
                this.Btn_Ok,
                this.Btn_QQ,
                this.Lbl_LoginID,
                this.Lbl_LoginPW,
                this.Rdb_Login,
                this.Rdb_Register,
                this.Rdb_EditPW,
                this.Rdb_UserCZ,
                this.Lbl_RegisterID,
                this.Lbl_RegisterPW,
                this.Btn_Register,
                this.Lbl_BDID,
                this.Lbl_BDPW,
                this.Btn_BD,
                this.Lbl_EditID,
                this.Lbl_EditPW,
                this.Lbl_EditPW1,
                this.Lbl_EditPW2,
                this.Btn_EditPW,
                this.Lbl_CZID,
                this.Lbl_CZPW,
                this.Btn_UserCZ
            };

            this.ImageControlList = list2;
            AppImage.LoadImage(this.ImageControlList);
            this.LoadImageMain();
        }
Exemple #19
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         if (base.WebCookie != "")
         {
             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            = pResponsetext.Split(new char[] { '_' })[0];
             AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         }
     }
     catch
     {
     }
 }
Exemple #20
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
     {
     }
 }
Exemple #21
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           = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "POST", pData, indexLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"Money\":\"", "\"", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         if (base.Prize == "")
         {
             base.Prize = CommFunc.GetIndexString(pResponsetext, "\"Rebate\":\"", "\"", 0);
         }
     }
     catch
     {
     }
 }
Exemple #22
0
 public override void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
     try
     {
         string accountsMemLine = this.GetAccountsMemLine(pType);
         string loginLine       = this.GetLoginLine();
         string pResponsetext   = "";
         HttpHelper.GetResponse(ref pResponsetext, accountsMemLine, "GET", string.Empty, loginLine, 0x2710, "UTF-8", true);
         base.BankBalance            = CommFunc.GetIndexString(pResponsetext, "\"balanceAmount\":", ",", 0);
         AppInfo.Account.BankBalance = Convert.ToDouble(base.BankBalance);
         if (base.Prize == "")
         {
             base.Rebate = CommFunc.GetIndexString(pResponsetext, "\"rebate\":", ",", 0);
             base.Prize  = (1800.0 + ((Convert.ToDouble(base.Rebate) * 2.0) * 10.0)).ToString();
             if (((AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5) || (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPPK10)) && (Convert.ToDouble(base.Prize) > 1950.0))
             {
                 base.Prize = "1950";
             }
         }
     }
     catch
     {
     }
 }
Exemple #23
0
 private void Btn_Register_Click(object sender, EventArgs e)
 {
     ConfigurationStatus.SCAccountData pAccountData = new ConfigurationStatus.SCAccountData();
     if (this.Txt_RegisterID.Text == "")
     {
         CommFunc.PublicMessageAll("输入会员账号不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_RegisterID.Focus();
     }
     else if (this.Txt_RegisterID.Text.Length > 0x10)
     {
         CommFunc.PublicMessageAll($"输入会员账号的长度不能超过{0x10}位!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_RegisterID.Focus();
     }
     else if (this.Txt_RegisterPW.Text == "")
     {
         CommFunc.PublicMessageAll("输入会员密码不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_RegisterPW.Focus();
     }
     else if (this.Txt_RegisterPW.Text.Length > 0x10)
     {
         CommFunc.PublicMessageAll($"输入会员密码的长度不能超过{0x10}位!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_RegisterPW.Focus();
     }
     else
     {
         pAccountData.ID                    = this.Txt_RegisterID.Text;
         pAccountData.PW                    = this.Txt_RegisterPW.Text;
         pAccountData.MachineCode           = this.MachineCode;
         pAccountData.Type                  = ConfigurationStatus.SCAccountType.FULL;
         pAccountData.ActiveTime            = DateTime.Now.ToString("yyyy-MM-dd");
         pAccountData.AppName               = AppInfo.Account.AppName;
         pAccountData.Configuration.FreeDay = AppInfo.Account.Configuration.FreeDay;
         if (AppInfo.Account.Configuration.BTPTUser)
         {
             if (this.PTLineDic.Count == 0)
             {
                 string webData = HttpHelper.GetWebData(AppInfo.cPTLineFile(""), "");
                 CommFunc.AnalysisPTLine(ref this.PTLineDic, webData);
             }
             pAccountData.PTUser = CommFunc.CreatPTUserString(pAccountData.ID, this.PTLineDic);
         }
         string str2 = SQLData.AddUserRow(pAccountData);
         if (str2 == "1")
         {
             if (AppInfo.Account.Configuration.FreeHint != "")
             {
                 CommFunc.PublicMessageAll(AppInfo.Account.Configuration.FreeHint, true, MessageBoxIcon.Asterisk, "");
             }
             else
             {
                 CommFunc.PublicMessageAll("注册成功!", true, MessageBoxIcon.Asterisk, "");
             }
         }
         else
         {
             string str3 = "请联系客服人员!";
             if (str2.Contains("插入重复键"))
             {
                 str3 = "该用户名已经存在!";
                 this.Txt_RegisterID.Focus();
             }
             CommFunc.PublicMessageAll($"注册失败,{str3}", true, MessageBoxIcon.Asterisk, "");
         }
     }
 }
Exemple #24
0
 public virtual void GetAccountsMem(ConfigurationStatus.LotteryType pType, ConfigurationStatus.SCAccountData pInfo)
 {
 }