From a36f9073c8d7d3c0b45e2082ad4e710ab4cebde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Tue, 16 Apr 2024 15:40:05 +0800 Subject: [PATCH] a --- ProductionSystem/Untils/Tool/UxTool.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ProductionSystem/Untils/Tool/UxTool.cs b/ProductionSystem/Untils/Tool/UxTool.cs index caa8c5f..9501f74 100644 --- a/ProductionSystem/Untils/Tool/UxTool.cs +++ b/ProductionSystem/Untils/Tool/UxTool.cs @@ -126,8 +126,10 @@ namespace ProductionSystem.Untils.Tool private void DoBackup(Object state) { + var sendMes = ""; XTrace.WriteLine("Ux定时器"); - mfSerialInfo.SendMessage(state.ToString()); + sendMes = state == null ? GetMsg(mo) : state.ToString(); + mfSerialInfo.SendMessage(sendMes); } public bool Exit { get; set; }