From 024703246120fee33e2f6c2f662383f1facdecd2 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 14 四月 2022 15:35:00 +0800
Subject: [PATCH] 2022年04月14日15:34:55

---
 HDL_ON/DAL/DriverLayer/Control.cs |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 80397b6..5f9b849 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -1066,6 +1066,10 @@
                                 break;
                             case SPK.CurtainShades:
                                 break;
+                            case SPK.HvacCac:
+                                Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp.sid, updateTemp.status);
+                               
+                                break;
                             case SPK.AcStandard:
                             case SPK.HvacAC:
                             case SPK.AcIr:
@@ -1290,7 +1294,15 @@
                     if (pack.Code != StateCode.SUCCESS)
                     {
                         Application.RunOnMainThread(() => {
-                            new PublicAssmebly().TipMsg(Language.StringByID(StringId.Tip), pack.message);
+                            if(string.IsNullOrEmpty(pack.message))
+                            {
+                                new PublicAssmebly().TipMsg(Language.StringByID(StringId.Tip),
+                                    Language.StringByID(StringId.OperationFailed));
+                            }
+                            else
+                            {
+                                new PublicAssmebly().TipMsg(Language.StringByID(StringId.Tip), pack.message);
+                            }
                         });
                     }
                 }

--
Gitblit v1.8.0