From 8ac39f2f962329f30ee61ee8a7abe6d6b5940dd5 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 01 七月 2021 13:45:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/CJL-LC' into wxr4 --- HDL_ON/UI/UI0-Stan/Logic/HdlDeviceStatuPushLogic.cs | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI0-Stan/Logic/HdlDeviceStatuPushLogic.cs b/HDL_ON/UI/UI0-Stan/Logic/HdlDeviceStatuPushLogic.cs index 84feeb0..8ae3705 100644 --- a/HDL_ON/UI/UI0-Stan/Logic/HdlDeviceStatuPushLogic.cs +++ b/HDL_ON/UI/UI0-Stan/Logic/HdlDeviceStatuPushLogic.cs @@ -45,12 +45,7 @@ { foreach (var attr in updateData) { - var localAttr = localDevice.status.Find((obj) => obj.key == attr.key); - if (localAttr != null) - { - //鏇存敼灞炴�у�� - localAttr.value = attr.value; - } + localDevice.SetAttrState(attr.key, attr.value); } //鍏ㄩ儴鐣岄潰鎺ㄩ�� HdlFormLogic.Current.DeviceStatuPush(localDevice); -- Gitblit v1.8.0