From 4091d5009b63ba1d6f24788ca79877c37001e0f6 Mon Sep 17 00:00:00 2001
From: C3032 <1057644574@qq.com>
Date: 星期五, 20 三月 2026 11:08:39 +0800
Subject: [PATCH] 华睿读码器集成完成,使用抽象接口-基类-各品牌子类的架构,实现可插拔设计,遵循开闭原则,方便后续集成其他品牌读码器
---
LB_VisionProcesses/Communicators/CommunicatorConfig.cs | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/LB_VisionProcesses/Communicators/CommunicatorConfig.cs b/LB_VisionProcesses/Communicators/CommunicatorConfig.cs
index bb0f4bd..1f5cfed 100644
--- a/LB_VisionProcesses/Communicators/CommunicatorConfig.cs
+++ b/LB_VisionProcesses/Communicators/CommunicatorConfig.cs
@@ -1,4 +1,5 @@
-锘縰sing Newtonsoft.Json;
+锘縰sing LB_SmartVisionCommon;
+using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System.Collections.Concurrent;
using System.Diagnostics;
@@ -7,7 +8,7 @@
namespace LB_VisionProcesses.Communicators
{
[Serializable]
- [Process("閫氳娴嬭瘯", Category = "閫氳宸ュ叿", Description = "鍒涘缓閫氳娴嬭瘯宸ュ叿")]
+ [Process("閫氳妯″潡", Category = "閫氳宸ュ叿", Description = "鍒涘缓閫氳妯″潡宸ュ叿")]
public class CommunicatorConfig : IProcess
{
/// <summary>
@@ -19,7 +20,7 @@
{
this.dicCommunicators = dicCommunicators;
- strProcessName = "閫氳娴嬭瘯";
+ strProcessName = "閫氳妯″潡";
strProcessClass = "LB_VisionProcesses.Communicators.CommunicatorConfig";
Params.Inputs.Add("閫氳鍙e悕", "");
@@ -43,12 +44,12 @@
if (!fullPath.Contains(".json"))
{
- Debug.WriteLine("鏂囦欢璺緞涓嶅畬鏁�");
+ AsyncLogHelper.Info("鏂囦欢璺緞涓嶅畬鏁�");
return false;
}
if (string.IsNullOrEmpty(fullPath) || fullPath.Trim() == "")
{
- Debug.WriteLine("鏂囦欢璺緞涓嶅畬鏁�");
+ AsyncLogHelper.Info("鏂囦欢璺緞涓嶅畬鏁�");
return false;
}
@@ -58,7 +59,7 @@
if (!File.Exists(fullPath))
{
- Debug.WriteLine("鏂囦欢涓嶅瓨鍦ㄥ垱寤虹┖鏂囦欢");
+ AsyncLogHelper.Info("鏂囦欢涓嶅瓨鍦ㄥ垱寤虹┖鏂囦欢");
Save(directoryPath);
return true;
}
@@ -90,7 +91,7 @@
{
if (string.IsNullOrEmpty(filePath) || filePath.Trim() == "")
{
- Debug.WriteLine("鏂囦欢璺緞涓嶅畬鏁�");
+ AsyncLogHelper.Info("鏂囦欢璺緞涓嶅畬鏁�");
return false;
}
--
Gitblit v1.9.3