Commit 0f775763 authored by liugd's avatar liugd

1

parent 1da133fb
...@@ -524,6 +524,7 @@ namespace ChuPiao.AutoPrint.Machine.TjJingCaiV1 ...@@ -524,6 +524,7 @@ namespace ChuPiao.AutoPrint.Machine.TjJingCaiV1
} }
byte[] bytesTest = null; byte[] bytesTest = null;
//测试用于本地输入一张票
if (GConfig.IsTest) { if (GConfig.IsTest) {
if (!isTestFlag) { if (!isTestFlag) {
isTestFlag = true; isTestFlag = true;
......
...@@ -49,11 +49,9 @@ namespace ChuPiao.Common.Utils ...@@ -49,11 +49,9 @@ namespace ChuPiao.Common.Utils
int i = 0; int i = 0;
foreach (var s in strs) foreach (var s in strs)
{ {
if (s.Length == 2) {
bytes[i++] = Convert.ToByte(s, 16); bytes[i++] = Convert.ToByte(s, 16);
} }
} }
}
return bytes; return bytes;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment