From ce2a26883e5dccaa0639cfdb4c4045ac7b5d9207 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期日, 20 十二月 2020 17:28:44 +0800
Subject: [PATCH] 2020-12-20 1.报警推送弹窗方案效果修改,点击查看跳转信息中心,实现避免重复弹窗。2.

---
 HDL_ON/Entity/FunctionList.cs |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs
index bc2eddc..2b481cb 100644
--- a/HDL_ON/Entity/FunctionList.cs
+++ b/HDL_ON/Entity/FunctionList.cs
@@ -590,12 +590,20 @@
                 {
                     if (DriverLayer.Control.Ins.IsRemote)
                     {
-                        var functionIds = new List<string>();
+                        var page = new List<string>();
+                        int count = 0;
+
                         foreach (var function in GetDeviceFunctionList())
                         {
-                            functionIds.Add(function.deviceId);
+                            page.Add(function.deviceId);
+                            count++;
+                            if (count > 9)
+                            {
+                                DriverLayer.Control.Ins.SendApiReadCommand(page);
+                                page.Clear();
+                            }
                         }
-                        DriverLayer.Control.Ins.SendApiReadCommand(functionIds);
+                        DriverLayer.Control.Ins.SendApiReadCommand(page);
                     }
                     else
                     {

--
Gitblit v1.8.0