修改异常信息

This commit is contained in:
junj2.liang
2022-09-09 14:48:29 +08:00
parent 9ccab48de8
commit 6b5d6633a6
6 changed files with 11 additions and 11 deletions
@@ -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) {