This commit is contained in:
junj2.liang
2022-08-08 11:28:28 +08:00
parent bd3fc80c7f
commit a16ae83f4d
2 changed files with 6 additions and 5 deletions
@@ -40,6 +40,10 @@ public class SydApi4Database implements SydApi {
@Override
public void SYD_Disconnect_Ex() {
if (isShortLinkMode) {
if ( null == hsms ){
return;
}
SydApi4j api = hsms[0];
if (null != api) {
try {
@@ -57,9 +61,6 @@ public class SydApi4Database implements SydApi {
if (LogFactory.iLogLevel==3) {
log.debug("SYD_SM3_Hash_ShortData方法接收参数:pcData:{}", Arrays.toString(pcData));
}
if (pcData.length==0){
throw new SydApiException(-19);
}
if (null == this.hsms || this.hsms.length < 1) {
throw new SydApiException(-1);
}