From d89a8ccb3d48d39f920b294c1966a3522ee8adbc Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 23 二月 2021 17:17:37 +0800
Subject: [PATCH] 11

---
 HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs
index 323e8fd..c08f7c4 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWeepRobotPage.cs
@@ -560,41 +560,41 @@
         /// </summary>
         private void RefreshNowDeviceStatuMemory(Function i_LocalDevice)
         {
-            foreach (var data in i_LocalDevice.attributes)
+            foreach (var data in i_LocalDevice.status)
             {
                 //寮�鍏�
-                if (data.key == "on_off") { this.weepRobotData.Cleaning = data.realValue.ToLower() == "on"; }
+                if (data.key == "on_off") { this.weepRobotData.Cleaning = data.value.ToLower() == "on"; }
                 //瀵绘壘鏈哄櫒
-                else if (data.key == "seek") { this.weepRobotData.SearchRobot = data.realValue.ToLower() == "true"; }
+                else if (data.key == "seek") { this.weepRobotData.SearchRobot = data.value.ToLower() == "true"; }
                 //杈瑰埛閲嶇疆
-                else if (data.key == "reset_edge_brush") { this.weepRobotData.ResetEdgeBrush = data.realValue.ToLower() == "true"; }
+                else if (data.key == "reset_edge_brush") { this.weepRobotData.ResetEdgeBrush = data.value.ToLower() == "true"; }
                 //婊氬埛閲嶇疆
-                else if (data.key == "reset_roll_brush") { this.weepRobotData.ResetRollBrush = data.realValue.ToLower() == "true"; }
+                else if (data.key == "reset_roll_brush") { this.weepRobotData.ResetRollBrush = data.value.ToLower() == "true"; }
                 //婊ょ綉閲嶇疆
-                else if (data.key == "reset_filter") { this.weepRobotData.ResetFilter = data.realValue.ToLower() == "true"; }
+                else if (data.key == "reset_filter") { this.weepRobotData.ResetFilter = data.value.ToLower() == "true"; }
                 //鍚稿姏閫夋嫨
-                else if (data.key == "suction") { this.weepRobotData.Suction = data.realValue; }
+                else if (data.key == "suction") { this.weepRobotData.Suction = data.value; }
                 //宸ヤ綔妯″紡
-                else if (data.key == "mode") { this.weepRobotData.Mode = data.realValue; }
+                else if (data.key == "mode") { this.weepRobotData.Mode = data.value; }
                 //娓呮壂鏂瑰悜	
-                else if (data.key == "direction_control") { this.weepRobotData.DirectionControl = data.realValue; }
+                else if (data.key == "direction_control") { this.weepRobotData.DirectionControl = data.value; }
                 //澹伴煶寮�鍏�
-                else if (data.key == "voice_switch") { this.weepRobotData.VoiceSwitch = data.realValue.ToLower() == "true"; }
+                else if (data.key == "voice_switch") { this.weepRobotData.VoiceSwitch = data.value.ToLower() == "true"; }
                 //娓呮壂闈㈢Н
                 else if (data.key == "clean_area")
                 {
-                    var value = data.realValue;
+                    var value = data.value;
                     if (value != string.Empty)
                     {
                         this.weepRobotData.CleanArea = Convert.ToInt32(value);
                     }
                 }
                 //娓呮壂璁板綍	
-                else if (data.key == "clean_record") { this.weepRobotData.CleanRecord = data.realValue; }
+                else if (data.key == "clean_record") { this.weepRobotData.CleanRecord = data.value; }
                 //杈瑰埛瀵垮懡
                 else if (data.key == "edge_brush")
                 {
-                    var value = data.realValue;
+                    var value = data.value;
                     if (value != string.Empty)
                     {
                         this.weepRobotData.EdgeBrush = Convert.ToInt32(value);
@@ -603,7 +603,7 @@
                 //婊氬埛瀵垮懡
                 else if (data.key == "roll_brush")
                 {
-                    var value = data.realValue;
+                    var value = data.value;
                     if (value != string.Empty)
                     {
                         this.weepRobotData.RollBrush = Convert.ToInt32(value);
@@ -612,7 +612,7 @@
                 //婊ょ綉瀵垮懡
                 else if (data.key == "filter")
                 {
-                    var value = data.realValue;
+                    var value = data.value;
                     if (value != string.Empty)
                     {
                         this.weepRobotData.Filter = Convert.ToInt32(value);
@@ -621,7 +621,7 @@
                 //娓呮壂鏃堕棿
                 else if (data.key == "clean_time")
                 {
-                    var value = data.realValue;
+                    var value = data.value;
                     if (value != string.Empty)
                     {
                         this.weepRobotData.CleanTime = Convert.ToInt32(value);
@@ -630,7 +630,7 @@
                 //鍓╀綑鐢甸噺	
                 else if (data.key == "electricity_left")
                 {
-                    var value = data.realValue;
+                    var value = data.value;
                     if (value != string.Empty)
                     {
                         this.weepRobotData.ElectricityLeft = Convert.ToInt32(value);

--
Gitblit v1.8.0