修改异常信息
This commit is contained in:
@@ -30,10 +30,10 @@ public class SydSM4 implements ISM4 {
|
||||
}
|
||||
int plength = pcData.length;
|
||||
if (is_finished) {
|
||||
throw new SydApiException(0);
|
||||
throw new SydApiException(0x8007);
|
||||
}
|
||||
if (plength > 4064) {
|
||||
throw new SydApiException(0);
|
||||
throw new SydApiException(0x8006);
|
||||
}
|
||||
if (iFlag == 1) {
|
||||
if (0 == queue.getLength()) {
|
||||
@@ -80,7 +80,7 @@ public class SydSM4 implements ISM4 {
|
||||
|
||||
public byte[] finish() {
|
||||
if (is_finished) {
|
||||
throw new SydApiException(0);
|
||||
throw new SydApiException(0x8007);
|
||||
}
|
||||
this.is_finished = true;
|
||||
if (1 == this.iPkgNum) {
|
||||
|
||||
Reference in New Issue
Block a user