From ecba45c93391066bc30c7bd602c3a7683fbb99a7 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 31 七月 2020 10:56:12 +0800
Subject: [PATCH] 临时备份

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs
index 05702e2..32f3a09 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs
@@ -231,9 +231,6 @@
             zoneInfo.ZoneId = allData.ZoneId;
             zoneInfo.ZoneName = allData.ZoneName;
 
-            //淇℃伅鎺ㄩ��
-            zoneInfo.InformationPush = allData.IsDisablePushMessage;
-
             //澶勭悊璁惧
             foreach (var data2 in allData.DeviceList)
             {
@@ -288,6 +285,9 @@
 
             zoneInfo.dicAlarmDevice.Clear();
             zoneInfo.dicScenes.Clear();
+
+            //淇℃伅鎺ㄩ��
+            zoneInfo.InformationPush = resData.IsDisablePushMessage;
 
             foreach (var data in resData.Actions)
             {
@@ -1708,6 +1708,11 @@
             {
                 return false;
             }
+
+            if (zoneId > 3)
+            {
+                zoneId = 3;
+            }
             //鐘舵�佸彉鏇�
             var result = await Safeguard.DisablePushMessageAsync(zoneId, statu);
             if (result == null || result.disablePushMessageResponseData == null || result.disablePushMessageResponseData.Result == 1)
@@ -1737,6 +1742,10 @@
         /// <returns>0:鎺ㄩ��  1:涓嶆帹閫�</returns>
         public int GetGarrisonInformationPushStatu(int zoneId)
         {
+            if (zoneId > 3)
+            {
+                zoneId = 3;
+            }
             if (this.dicAllZoneInfo.ContainsKey(zoneId) == false)
             {
                 return 1;
@@ -2331,7 +2340,7 @@
             /// </summary>
             public string ZoneName;
             /// <summary>
-            /// 淇℃伅鎺ㄩ�� 0:鎺ㄩ��  1:涓嶆帹閫� 
+            /// 淇℃伅鎺ㄩ�� 0:鎺ㄩ��  1:涓嶆帹閫� (鍙湁闃插尯ID:1,2,3鎵嶄細鏈夈��4,5鐨勯兘褰掍负3,鍥犱负瀹冩槸浠ラ槻鍖烘ā寮廔D(ActionType)涓哄崟浣嶇殑)
             /// </summary>
             public int InformationPush = 1;
             /// <summary>

--
Gitblit v1.8.0