From dd3fecc3a8b92b377febfcf92d32ec22a07724f6 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期日, 26 九月 2021 15:21:57 +0800 Subject: [PATCH] 主从网关属性,防挤下线账号删除 --- HDL_ON/DAL/Mqtt/MqttClient.cs | 17 ++--------------- 1 files changed, 2 insertions(+), 15 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index 8757db9..94a7cae 100644 --- a/HDL_ON/DAL/Mqtt/MqttClient.cs +++ b/HDL_ON/DAL/Mqtt/MqttClient.cs @@ -408,7 +408,7 @@ for (int i = 0; i < FunctionList.List.GetDeviceFunctionList().Count;) { var localFunction = FunctionList.List.GetDeviceFunctionList()[i]; - if (localFunction.Spk_Prefix == FunctionCategory.Music || string.IsNullOrEmpty(localFunction.Spk_Prefix)) + if (SPK.MusicSpkList().Contains(localFunction.spk)) { i++; continue; @@ -755,21 +755,8 @@ //娴嬭瘯璐﹀彿锛屼笉鎸や笅绾� switch (UserInfo.Current.userMobileInfo) { - case "13415629083": - case "18316120654": - case "15622703419": - case "18824864143": - case "464027401@qq.com": - case "2791308028@qq.com": - case "13697499568": - case "18666455392": - case "13375012446": - case "13602944661": - case "18778381374": - case "18316672920": - case "15971583093": case "15626203746": - case "551775569@qq.com": + case "464027401@qq.com": return; } -- Gitblit v1.8.0