From 3c09e83246ac9866f6a38b1739436f0833565e1f Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期三, 16 十月 2024 11:10:01 +0800 Subject: [PATCH] 报警信息修改 --- Admin.NET/WCS.Application/PLC/PLCCommon.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Admin.NET/WCS.Application/PLC/PLCCommon.cs b/Admin.NET/WCS.Application/PLC/PLCCommon.cs index dafb2a2..e020f08 100644 --- a/Admin.NET/WCS.Application/PLC/PLCCommon.cs +++ b/Admin.NET/WCS.Application/PLC/PLCCommon.cs @@ -432,7 +432,10 @@ taskInfo.EndPai = paiVal.ToString(); taskInfo.EndCeng = cengNum.ToString(); taskInfo.EndLie = lieNum.ToString() ; - + if (taskInfo.EndPai == "0" || taskInfo.EndCeng == "0" || taskInfo.EndLie == "0") + { + throw new Exception("鎺掑垪灞傝浆鎹㈠け璐�"); + } return taskInfo; } @@ -878,7 +881,10 @@ } } } - + if (paiVal == 0) + { + throw new Exception("鎺掕浆鎹㈠け璐�"); + } return paiVal; } -- Gitblit v1.8.0