Commit 63511bf5 LN

扫码日志修改

1 个父辈 35a504a0
......@@ -521,11 +521,12 @@ namespace OnlineStore.DeviceLibrary
if (IOValue(IO_Type.ExitTray_Check3).Equals(IO_VALUE.LOW))
{
UpdateScanInfo(IO_VALUE.LOW,"");
List<string> LastCodeList = CodeManager.CameraScan(Config.GetCameraList(), hengyiName, true);
List<string> LastCodeList = CodeManager.CameraScan(Config.GetCameraList(), "", true);
LastCode = SServerManager.ProcessCodeList(LastCodeList);
if (LastCodeList.Count > 0)
{
UpdateScanInfo(IO_VALUE.HIGH, LastCode);
LogUtil.info(hengyiName + "ExitTray_Check3不亮,但扫到条码,更改为有料: " + LastCode);
}
IsInScanCode = false;
......
......@@ -115,8 +115,10 @@ namespace OnlineStore.DeviceLibrary
}
ScanCount++;
DateTime startTime = DateTime.Now;
LogUtil.info(deviceName + " 【" + cameraName + "】开始取图片");
if (deviceName != "")
{
LogUtil.info(deviceName + " 【" + cameraName + "】开始取图片");
}
HalconDotNet.HObject ho_Image = null;
bool findRightCode = false;
try
......@@ -129,7 +131,7 @@ namespace OnlineStore.DeviceLibrary
continue;
}
LogUtil.info(deviceName + " 【" + cameraName + "】取图片完成,开始扫码");
LogUtil.debug(deviceName + " 【" + cameraName + "】取图片完成,开始扫码");
List<CodeInfo> cc = new List<CodeInfo>();
string r = "";
foreach (string codeType in codeTypeList)
......@@ -166,7 +168,10 @@ namespace OnlineStore.DeviceLibrary
{
// SaveImageToFile(deviceName, cameraName, bit);
}
LogUtil.info(deviceName + " 【" + cameraName + "】扫码完成【" + FormUtil.GetSpanStr(DateTime.Now - startTime) + "】["+ findRightCode + "]" + ScanCount + " :" + r);
if (deviceName != "" || r != "")
{
LogUtil.info(deviceName + " 【" + cameraName + "】扫码完成【" + FormUtil.GetSpanStr(DateTime.Now - startTime) + "】[" + findRightCode + "]" + ScanCount + " :" + r);
}
}
catch (AccessViolationException e)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!