From d59da24ddf642f6a50d8134ad082eda90dc3dc1e Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期四, 12 九月 2024 14:00:11 +0800
Subject: [PATCH] 优化输送线交互逻辑

---
 Admin.NET/WCS.Application/Hub/PlcHub.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Admin.NET/WCS.Application/Hub/PlcHub.cs b/Admin.NET/WCS.Application/Hub/PlcHub.cs
index 2cf316f..c8108e7 100644
--- a/Admin.NET/WCS.Application/Hub/PlcHub.cs
+++ b/Admin.NET/WCS.Application/Hub/PlcHub.cs
@@ -63,7 +63,7 @@
             PLCTaskAction.boRefresh = context.BoRefresh.Value;
             await _sysConfigService.UpdateConfigValue("sys_Refresh", context.BoRefresh.Value);
         }
-        await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline });
+        await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline, BoDemo = PLCTaskAction.boDemo});
     }
 }
 public class PLCServiceModel
@@ -75,4 +75,6 @@
 
 
     public bool? BoRefresh { get; set; }
+
+    public bool? BoDemo { get; set; }
 }
\ No newline at end of file

--
Gitblit v1.8.0