Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs
@@ -78,10 +78,10 @@
            };
#if DEBUG
            etAccount.Text = "18926269190@189.cn";
            //etAccount.Text = "18926269190@189.cn";
            //etAccount.Text = "721343314@qq.com";
            //etAccount.Text = "crabtreel12019@gmail.com";
            //etAccount.Text = "2791308028@qq.com";
            etAccount.Text = "2791308028@qq.com";
#endif
            accountView.AddChidren (etAccount);
@@ -155,19 +155,19 @@
                etPasswrod.SecureTextEntry = !btnShowPassword.IsSelected;
            };
#if DEBUG
            int NigelLoginPass = 0;
            btnLogo.MouseUpEventHandler += (sender, e) => {
                if (NigelLoginPass == 3) {
                    etAccount.Text = @"464027401@qq.com";
                    etPasswrod.Text = "qqqqqq";
                } else if (NigelLoginPass == 5) {
                    etAccount.Text = @"Jai.singh@havells.com";
                    etPasswrod.Text = "123456";
                }
                NigelLoginPass++;
            };
#endif
//#if DEBUG
//            int NigelLoginPass = 0;
//            btnLogo.MouseUpEventHandler += (sender, e) => {
//                if (NigelLoginPass == 3) {
//                    etAccount.Text = @"464027401@qq.com";
//                    etPasswrod.Text = "qqqqqq";
//                } else if (NigelLoginPass == 5) {
//                    etAccount.Text = @"Jai.singh@havells.com";
//                    etPasswrod.Text = "123456";
//                }
//                NigelLoginPass++;
//            };
//#endif
            //if (accountList.Count > 0) {
            //    etAccount.Text = accountList [accountList.Count-1];
            //}
@@ -247,12 +247,27 @@
                    });
                    return;
                }
                //邮箱格式不对
                if (!CommonUtlis.Current.CheckEmail(account)) {
                    Application.RunOnMainThread (() => {
                        new Tip () { Text = Language.StringByID (R.MyInternationalizationString.PleaseCheckEmailAddressCorrectly), Direction = AMPopTipDirection.Up, CloseTime = 3 }.Show (btnLogo);
                    });
                    return;
                }
                if (string.IsNullOrEmpty (password)) {
                    Application.RunOnMainThread (() => {
                        new Tip () { Text = "Please enter your password.", Direction = AMPopTipDirection.Up, CloseTime = 3 }.Show (btnLogo);
                    });
                    return;
                }
                //检测账号是否锁定
                if (CommonConfig.Current.CheckIfLock (account)) {
                    return;
                }
                System.Threading.Tasks.Task.Run (() => {
                    try {
                        Application.RunOnMainThread (() => {
@@ -565,6 +580,10 @@
                else if (stateCodeStr == "USERNAMEORPWDERROR") {
                    //账号或密码错误
                    mes = ErrorCode.USERNAMEORPWDERROR;
                    if (CommonConfig.Current.ErrorLockListUpdate (account)) {
                        return;
                    }
                } else if (stateCodeStr == "ACCOUNTNOEXISTS") {
                    //账号不存在
                    mes = ErrorCode.ACCOUNTNOEXISTS;
@@ -636,6 +655,9 @@
        }
        ///// <summary>
        ///// 查询当前住宅 网关列表
        ///// </summary>