|
|
|
@ -74,6 +74,7 @@ namespace Aucma.Core.Scanner
|
|
|
|
|
// (成功创建)连接上的设备和其ip(string)集合
|
|
|
|
|
public static Dictionary<MvCodeReader, string> m_cMyDevices = new Dictionary<MvCodeReader, string>();
|
|
|
|
|
|
|
|
|
|
private static string lastCodeStr = string.Empty;
|
|
|
|
|
|
|
|
|
|
#region 设备连接状态
|
|
|
|
|
/// <summary>
|
|
|
|
@ -342,11 +343,15 @@ namespace Aucma.Core.Scanner
|
|
|
|
|
}
|
|
|
|
|
string strCode = Encoding.GetEncoding("UTF-8").GetString(buffer).Trim().TrimEnd('\0');
|
|
|
|
|
log.Info("相机ip:" + hashmap.Value + " Get CodeNum: " + "CodeNum[" + i.ToString() + "], CodeString[" + strCode + "]");
|
|
|
|
|
if (!string.IsNullOrEmpty(strCode))
|
|
|
|
|
if (!string.IsNullOrEmpty(strCode) && !strCode.Equals(lastCodeStr))
|
|
|
|
|
{
|
|
|
|
|
DoorReceiveCodeDelegateEvent?.Invoke(strCode);//箱门匹配扫码器
|
|
|
|
|
// 获取到条码处理业务
|
|
|
|
|
Console.WriteLine(strCode,hashmap.Value);
|
|
|
|
|
// DoorReceiveCodeDelegateEvent?.Invoke(strCode);//箱门匹配扫码器
|
|
|
|
|
// 获取到条码处理业务
|
|
|
|
|
|
|
|
|
|
Console.WriteLine(strCode,hashmap.Value);
|
|
|
|
|
// 泡前库业务处理
|
|
|
|
|
// PQKReceiveCodeEvent(strCode);
|
|
|
|
|
lastCodeStr = strCode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|