wxr
2023-08-04 20f70e3446df19bf5d0faaae9f7bd58fd0fc4bcc
Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs
@@ -75,7 +75,10 @@
                TextColor = SkinStyle.Current.TextColor1,
                //Text = account,
#if DEBUG
                Text = "crabtreel12019@gmail.com"
                //Text = "crabtreel12019@gmail.com"
                //Text = "paanghal@gmail.com"
                Text = "kumar.niranjan72@gmail.com"
#endif
            };
            accountView.AddChidren (etAccount);
@@ -144,11 +147,13 @@
#if DEBUG
            int NigelLoginPass = 0;
            btnLogo.MouseUpEventHandler += (sender, e) => {
                etAccount.Text = "460649739@qq.com";
                etPasswrod.Text = "kkkkkk333";
                if (NigelLoginPass == 3) {
                    etAccount.Text = @"464027401@qq.com";
                    etPasswrod.Text = "qqqqqq";
                } else if (NigelLoginPass == 5) {
                    etAccount.Text = @"Jai.singh@havells.com";
                    etAccount.Text = @"support6@hdlchina.com.cn";
                    etPasswrod.Text = "123456";
                }
                NigelLoginPass++;
@@ -277,9 +282,11 @@
                                    ID = revertData.UserId, MasterID = revertData.MainUserId, AccountType = revertData.UserType, AccountString = account, Password = password, LastTime = DateTime.Now,
                                    AllVisionRegisterDevUserNameGuid = revertData.AllVisionRegisterDevUserNameGuid, Name = revertData.Contact
                                };
                                var se = new service.hdlcontrol.com_push.WebServicePush ();
                                se.VerifySoapHeaderValue = new service.hdlcontrol.com_push.VerifySoapHeader () { Email = MainPage.LoginUser.AccountString, UserMode = 0 };
                                se.AddRegId (UserConfig.Instance.tokenID, UserConfig.Instance.phoneName);
                                //2021-12-27 去掉解决客户反馈iOS 无法登陆问题
                                //var se = new service.hdlcontrol.com_push.WebServicePush ();
                                //se.VerifySoapHeaderValue = new service.hdlcontrol.com_push.VerifySoapHeader () { Email = MainPage.LoginUser.AccountString, UserMode = 0 };
                                //se.AddRegId (UserConfig.Instance.tokenID, UserConfig.Instance.phoneName);
                                var requestObj2 = new HomeListObj ();
                                var requestJson2 = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj2);
@@ -287,7 +294,8 @@
                                if (revertObj2.StateCode == "SUCCESS") {
                                    var responseDataObj2 = Newtonsoft.Json.JsonConvert.DeserializeObject<List<RegionInfoRes>> (revertObj2.ResponseData.ToString ());
                                    var revertRoomData = responseDataObj2;
                                    if (revertRoomData.Find ((obj) => obj.RegionID == UserConfig.Instance.CurrentRegion.RegionID) == null) {
                                    //2020-04-10 增加判空处理
                                    if (UserConfig.Instance.CurrentRegion == null || revertRoomData.Find ((obj) => obj.RegionID == UserConfig.Instance.CurrentRegion.RegionID) == null) {
                                        UserConfig.Instance.CurrentRegion = revertRoomData [0];
                                        UserConfig.Instance.GatewayMAC = revertRoomData [0].MAC;
                                        IO.FileUtils.DeleteAllFile ();