Commit c7841690 LN

未找到有效条码时保存图片,

1 个父辈 0a2f94ec
...@@ -98,7 +98,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -98,7 +98,7 @@ namespace OnlineStore.DeviceLibrary
private static int ScanCount = 0; private static int ScanCount = 0;
private static int codeCount = ConfigAppSettings.GetIntValue(Setting_Init.CodeCount); private static int codeCount = ConfigAppSettings.GetIntValue(Setting_Init.CodeCount);
[HandleProcessCorruptedStateExceptions] [HandleProcessCorruptedStateExceptions]
public static List<string> CameraScan(List<string> cameraList, string deviceName, bool findRightCodeBreak = false,int timeOut=2000) public static List<string> CameraScan(List<string> cameraList, string deviceName, bool findRightCodeBreak = false,int timeOut=1500)
{ {
List<string> codeList = new List<string>(); List<string> codeList = new List<string>();
if (cameraList == null || cameraList.Count <= 0) if (cameraList == null || cameraList.Count <= 0)
...@@ -164,7 +164,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -164,7 +164,7 @@ namespace OnlineStore.DeviceLibrary
break; break;
} }
} }
if (String.IsNullOrEmpty(r)) if (!findRightCode)
{ {
SaveImageToFile(deviceName, cameraName, ho_Image); SaveImageToFile(deviceName, cameraName, ho_Image);
} }
...@@ -257,8 +257,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -257,8 +257,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (strarray[0].StartsWith("L") && if (strarray[0].StartsWith("L") &&
strarray[1].StartsWith("E") && strarray[1].StartsWith("E") &&
strarray[2].StartsWith("B") && strarray[2].StartsWith("B"))
strarray[3].StartsWith("R"))
{ {
return true; return true;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!