Commit d41411c2 LN

扫码处增加过滤

1 个父辈 2797984d
...@@ -44,7 +44,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -44,7 +44,7 @@ namespace OnlineStore.DeviceLibrary
} }
catch (Exception ex) catch (Exception ex)
{ {
LogUtil.error("解析摄像机配置出错:" ,ex); LogUtil.error("解析摄像机配置出错:", ex);
} }
} }
private static void LoadCamera(bool isReLoad) private static void LoadCamera(bool isReLoad)
...@@ -57,7 +57,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -57,7 +57,7 @@ namespace OnlineStore.DeviceLibrary
} }
catch (Exception ex) catch (Exception ex)
{ {
LogUtil.error("加载HIK相机出错:",ex); LogUtil.error("加载HIK相机出错:", ex);
} }
try try
{ {
...@@ -65,7 +65,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -65,7 +65,7 @@ namespace OnlineStore.DeviceLibrary
} }
catch (Exception ex) catch (Exception ex)
{ {
LogUtil.error("加载Basler相机出错:",ex); LogUtil.error("加载Basler相机出错:", ex);
} }
} }
string[] names = CodeLibrary.HIKCamera.Instance.CameraName; string[] names = CodeLibrary.HIKCamera.Instance.CameraName;
...@@ -157,7 +157,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -157,7 +157,7 @@ namespace OnlineStore.DeviceLibrary
} }
catch (Exception ex) catch (Exception ex)
{ {
LogUtil.error("从相机【" + cameraName + "】获取图片出错:",ex); LogUtil.error("从相机【" + cameraName + "】获取图片出错:", ex);
} }
return bitm; return bitm;
} }
...@@ -211,8 +211,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -211,8 +211,9 @@ namespace OnlineStore.DeviceLibrary
} }
foreach (CodeInfo c in cc) foreach (CodeInfo c in cc)
{ {
codeList.Add(c.CodeStr); string str = CodeManager.ReplaceCode(c.CodeStr);
r = r + "##" + c.CodeStr; codeList.Add(str);
r = r + "##" + str;
} }
LogUtil.debug(" 【" + cameraName + "】【" + codeType + "】扫码完成:" + r); LogUtil.debug(" 【" + cameraName + "】【" + codeType + "】扫码完成:" + r);
} }
...@@ -230,7 +231,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -230,7 +231,7 @@ namespace OnlineStore.DeviceLibrary
} }
catch (Exception ex) catch (Exception ex)
{ {
LogUtil.error("扫码出错:",ex); LogUtil.error("扫码出错:", ex);
} }
return codeList; return codeList;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!