wei
2020-12-13 271015c6e90c195103cc7f34eda87966acd74dcc
HDL_ON/UI/MainPage.cs
@@ -115,10 +115,6 @@
                        { IsBackground = true }.Start();
                        GoUserPage(true);
                        ///初始化app数据
                        InitializationData();
                    }
                }
            }
@@ -182,6 +178,11 @@
                            }
                        }
                    }
                    else
                    {
                        Entity.FunctionList.List.Clear();
                        Entity.SpatialInfo.CurrentSpatial.Clear();
                    }
                    ///等待获取住宅信息
                    Application.RunOnMainThread(() =>
                    {
@@ -228,6 +229,10 @@
                catch (Exception ex)
                {
                    MainPage.Log($"GoUserPage : {ex.Message}");
                }finally
                {
                    ///初始化app数据
                    InitializationData();
                }
            }).Start();
        }
@@ -241,7 +246,7 @@
            {
                while (true)
                {
                    if (Entity.DB_ResidenceData.residenceData == null )//|| Entity.DB_ResidenceData.residenceData.HomeGateway == null)
                    if (Entity.DB_ResidenceData.Instance == null )//|| Entity.DB_ResidenceData.residenceData.HomeGateway == null)
                    {
                        System.Threading.Thread.Sleep(100);
                    }
@@ -250,6 +255,7 @@
                        break;
                    }
                }
                //System.Threading.Thread.Sleep(2000);
                #region 读取云端数据--
                //todo数据覆盖处理
                //读取云端房间、楼层数据