HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-06-18 2450c12c825ad4d78d1572da2fa421706db2df2f
ZigbeeApp/Shared/Phone/UserView/HomePage.cs
@@ -63,7 +63,7 @@
                    //登录成功,或者没有网络都可以登录
                    if (loginSuccess == 1 || loginSuccess == 2)
                    {
                        var homes = await House.GetHomeLists();
                        var homes = await UserCenter.HdlResidenceLogic.Current.GetHomeListsFromDb();
                        //刷新个人中心的内存及线程
                        await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
                        //启动ZigBee
@@ -76,6 +76,22 @@
                            CommonPage.Loading.Hide();
                        });
                    }
                    else
                    {
                        //设定一个时间
                        Config.Instance.LoginDateTime = new DateTime(1970, 1, 1);
                        Config.Instance.Save();
                        UserCenter.HdlThreadLogic.Current.RunMain(() =>
                        {
                            CommonPage.Loading.Hide();
                            CommonPage.Instance.RemoveViewByTag("Login");
                            //登录弹出登录界面
                            var accountLogin = new Login.AccountLoginForm { };
                            Shared.Common.CommonPage.Instance.AddChidren(accountLogin);
                            accountLogin.ShowForm();
                        });
                    }
                });
            }
            else