From 82bbb9ad2a5a3ffed564ccfa67f6788a2013e2f3 Mon Sep 17 00:00:00 2001 From: liuwf Date: Thu, 1 Aug 2024 09:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/LogoBusiness.cs | 31 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/SlnMesnac.Business/LogoBusiness.cs b/SlnMesnac.Business/LogoBusiness.cs index d37f8ac..ebf42a0 100644 --- a/SlnMesnac.Business/LogoBusiness.cs +++ b/SlnMesnac.Business/LogoBusiness.cs @@ -87,13 +87,21 @@ namespace SlnMesnac.Business InitClearTimer(); } - - - /// - /// 接收光电模块信号 - /// - /// - /// + public static LogoBusiness GetInstance(ILogger logger, ILogoConfigService logoConfigService, IBaseMaterialService baseMaterialService, ILogoIdentifyService ocrVerfiyService, PlcPool _plcPool, TcpServer _tcpServer) + { + if (instance == null) + { + instance = new LogoBusiness(logger, logoConfigService, baseMaterialService, ocrVerfiyService, _plcPool, _tcpServer); + } + return instance; + } + + + /// + /// 接收光电模块信号 + /// + /// + /// private void SerialSignalPush(string ip, int flag) { // 光电触发拍照 @@ -125,15 +133,6 @@ namespace SlnMesnac.Business } - public static LogoBusiness GetInstance(ILogger logger, ILogoConfigService logoConfigService, IBaseMaterialService baseMaterialService, ILogoIdentifyService ocrVerfiyService, PlcPool _plcPool, TcpServer _tcpServer) - { - if (instance == null) - { - instance = new LogoBusiness(logger, logoConfigService, baseMaterialService, ocrVerfiyService, _plcPool, _tcpServer); - } - return instance; - } - /// /// 条码触发相机拍照校验