From f71b2bc0b2b60073543dec69032b95572361eea5 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:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionSystem/Untils/Tool/Uy.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ProductionSystem/Untils/Tool/Uy.cs b/ProductionSystem/Untils/Tool/Uy.cs index 0bc82c6..06e098b 100644 --- a/ProductionSystem/Untils/Tool/Uy.cs +++ b/ProductionSystem/Untils/Tool/Uy.cs @@ -118,7 +118,10 @@ namespace ProductionSystem.Untils.Tool private void DoBackup(Object state) { XTrace.WriteLine("Uy定时器"); - mfSerialInfo.SendMessage(state.ToString()); + var sendMes = ""; + + sendMes = state == null ? GetMsg(mo) : state.ToString(); + mfSerialInfo.SendMessage(sendMes); }