From c9e3a7f0c154892f2327e300e28af53f81e40ad0 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 20 2月 2025 11:03:24 +0800
Subject: [PATCH] 软件加密+ 修复 不断给plc报警的问题
---
SDA/iWareSda/SdaMainForm.cs | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/SDA/iWareSda/SdaMainForm.cs b/SDA/iWareSda/SdaMainForm.cs
index 9a1bae9..bfd8314 100644
--- a/SDA/iWareSda/SdaMainForm.cs
+++ b/SDA/iWareSda/SdaMainForm.cs
@@ -12,7 +12,7 @@
using System.Linq;
using iWareCommon;
using Newtonsoft.Json.Linq;
-
+using System.Threading.Tasks;
namespace iWareSda
{
@@ -108,8 +108,11 @@
{
#region 瀵瑰鍙戝竷WCF褰㈠紡鏁版嵁璁块棶鏈嶅姟
- var StationServiceHost = new ServiceHost(typeof(iWareSda.StationService));
- StationServiceHost.Open();
+ Task.Run(() =>
+ {
+ var StationServiceHost = new ServiceHost(typeof(iWareSda.StationService));
+ StationServiceHost.Open();
+ });
#endregion
@@ -355,7 +358,7 @@
}
//璧嬪�兼姤璀�
- s.View.R_WarningDBList = s.GetAlertDatas();
+ //s.View.R_WarningDBList = s.GetAlertDatas();
//s.IsConnected = s.plcService.IsConnected;
////鍖哄煙1
--
Gitblit v1.9.3