陈嘉乐
2021-01-12 330e3ae4cdd1e9facb14b6ea2b3e609166c04fd3
HDL_ON/DAL/Mqtt/MqttClient.cs
@@ -160,6 +160,10 @@
        }
        static bool isSubscribeSuccess;
        /// <summary>
        /// 订阅主题
        /// </summary>
        /// <returns></returns>
        static async Task SubscribeTopics()
        {
            if (remoteIsConnected && !isSubscribeSuccess)
@@ -540,9 +544,9 @@
        /// </summary>
        static void ReceiveNotifySqueezeAsync(string mMes)
        {
#if DEBUG
//#if DEBUG
            return;
#endif
//#endif
            if (mMes == PushSignStr) return;//是自己的登录推送不处理
            //断开远程连接
@@ -659,7 +663,17 @@
            if (Control.Ins.IsRemote)
            {
                if (!Control.Ins.GatewayOnline)
                    Control.Ins.GatewayOnline = true;
                {
                    try
                    {
                        if (DB_ResidenceData.Instance.HomeGateway != null)
                        {
                            DB_ResidenceData.Instance.HomeGateway.gatewayStatus = true;
                        }
                        Control.Ins.GatewayOnline = true;
                    }
                    catch { }
                }
            }
        }