清理无用代码

This commit is contained in:
a88359121
2025-07-31 11:18:43 +08:00
parent 03087c0483
commit 2c4be8993c
107 changed files with 1119 additions and 1477 deletions
+10 -14
View File
@@ -1,15 +1,11 @@
using HslCommunication.MQTT;
using HslCommunication;
using HslCommunication;
using HslCommunication.MQTT;
using JinYuan.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using System.Security.Policy;
using JinYuan.Models;
using System.Text;
namespace JinYuan.Helper
{
@@ -86,9 +82,9 @@ namespace JinYuan.Helper
public string Device_name = "602VIW01";
public string Action_time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
/// <summary>
/// 发送进出站数据
/// </summary>
@@ -96,7 +92,7 @@ namespace JinYuan.Helper
/// <param name="IP"></param>
/// <param name="Port"></param>
/// <param name="cPQCPTDate"></param>
public void EnterandExitSendMessge(int Station = 3)
public void EnterandExitSendMessge(int Station = 3)
{
try
{
@@ -113,7 +109,7 @@ namespace JinYuan.Helper
PublishMessage(Topic, EnterandExitMessge("0"));
}
//出站
else if (Station == 1)
else if (Station == 1)
{
PublishMessage(Topic, EnterandExitMessge("1"));
@@ -121,7 +117,7 @@ namespace JinYuan.Helper
}
catch (Exception err)
{
LoggerHelp.WriteError($"发送进出站数据错误,{err.Message}",err);
LoggerHelp.WriteError($"发送进出站数据错误,{err.Message}", err);
}
}
/// <summary>
@@ -144,7 +140,7 @@ namespace JinYuan.Helper
}
catch (Exception err)
{
LoggerHelp.WriteError($"发送采集项数据错误,{err.Message}",err);
LoggerHelp.WriteError($"发送采集项数据错误,{err.Message}", err);
}
}