From 88c408e49689961d3eb3496c6e89c60e230a92f3 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 29 九月 2022 13:12:32 +0800
Subject: [PATCH] iOS光伏数据更新闪退修复

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

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 355ef81..14b10c3 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -1488,8 +1488,14 @@
                                 //wjc
                                 break;
                             case SPK.Inverter:
+                                MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�");
                                 var status = new Dictionary<string, object> { ["method"] = "status", ["data"] = temp.objects };
-                                Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')");
+                                MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�1");
+                                Application.RunOnMainThread(() =>
+                                {
+                                    Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')");
+                                });
+                                MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�2");
                                 break;
                         }
 

--
Gitblit v1.8.0