修改日志
This commit is contained in:
@@ -183,7 +183,6 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
if ( 0 == iKeyIndex.length ) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
// 将数据进行分组,防止超长。
|
||||
List<List<byte[]>> dataGroups = new ArrayList<>();
|
||||
List<List<Integer>> keyGroups = new ArrayList<>();
|
||||
@@ -206,13 +205,14 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
|
||||
curDataGroup = new ArrayList<>();
|
||||
curKeyGroup = new ArrayList<>();
|
||||
totalLen = 0;
|
||||
}
|
||||
|
||||
|
||||
curDataGroup.add(data);
|
||||
curKeyGroup.add(iKeyIndex[i]);
|
||||
|
||||
totalLen = data.length;
|
||||
totalLen += data.length;
|
||||
|
||||
}
|
||||
|
||||
@@ -259,7 +259,6 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
if ( 0 == iKeyIndex.length ) {
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
// 将数据进行分组,防止超长。
|
||||
List<List<byte[]>> dataGroups = new ArrayList<>();
|
||||
List<List<Integer>> keyGroups = new ArrayList<>();
|
||||
@@ -282,12 +281,13 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
|
||||
curDataGroup = new ArrayList<>();
|
||||
curKeyGroup = new ArrayList<>();
|
||||
totalLen = 0;
|
||||
}
|
||||
|
||||
curDataGroup.add(data);
|
||||
curKeyGroup.add(iKeyIndex[i]);
|
||||
|
||||
totalLen = data.length;
|
||||
totalLen += data.length;
|
||||
}
|
||||
|
||||
dataGroups.add(curDataGroup);
|
||||
@@ -323,7 +323,6 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
|
||||
@Override
|
||||
public boolean[] SYD_SM4Mac_BatchData(int[] iKeyIndex, List<byte[]> pcData, String[] pcMac) {
|
||||
|
||||
if ( null == iKeyIndex || null == pcData ) {
|
||||
throw new IllegalArgumentException("批量输入数据为 null");
|
||||
}
|
||||
@@ -336,7 +335,6 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
return new boolean[0];
|
||||
}
|
||||
|
||||
|
||||
// 将数据进行分组,防止超长。
|
||||
List<List<byte[]>> dataGroups = new ArrayList<>();
|
||||
List<List<Integer>> keyGroups = new ArrayList<>();
|
||||
@@ -364,13 +362,14 @@ public class SydApiLongLinkWrap implements SydApi {
|
||||
curDataGroup = new ArrayList<>();
|
||||
curKeyGroup = new ArrayList<>();
|
||||
curMacGroup = new ArrayList<>();
|
||||
totalLen = 0;
|
||||
}
|
||||
|
||||
|
||||
curDataGroup.add(data);
|
||||
curKeyGroup.add(iKeyIndex[i]);
|
||||
curMacGroup.add(pcMac[i]);
|
||||
totalLen = data.length;
|
||||
totalLen += data.length;
|
||||
}
|
||||
|
||||
dataGroups.add(curDataGroup);
|
||||
|
||||
Reference in New Issue
Block a user