|
|
@@ -6,7 +6,6 @@ import com.ningdatech.basic.exception.BizException; |
|
|
|
import com.ningdatech.basic.util.StrPool; |
|
|
|
import com.ningdatech.pmapi.irs.config.IrsSealPlatformProperties; |
|
|
|
import com.ningdatech.pmapi.todocenter.model.dto.SignReqDTO; |
|
|
|
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; |
|
|
|
import org.apache.commons.lang3.tuple.Pair; |
|
|
|
import org.apache.http.HttpEntity; |
|
|
|
import org.apache.http.HttpResponse; |
|
|
@@ -81,7 +80,8 @@ public class IRSAPIRequest { |
|
|
|
// 获取盖好章的PDF文件内容Base64字符串 |
|
|
|
String signFileB64 = object.getString("signFileB64"); |
|
|
|
if (Objects.nonNull(signFileB64)){ |
|
|
|
return signFileB64.getBytes(); |
|
|
|
Base64.getDecoder().decode(signFileB64); |
|
|
|
return Base64.getDecoder().decode(signFileB64); |
|
|
|
}else { |
|
|
|
return null; |
|
|
|
} |
|
|
@@ -245,7 +245,7 @@ public class IRSAPIRequest { |
|
|
|
//刷新此输出流并强制写出所有缓冲的输出字节 |
|
|
|
bout.flush(); |
|
|
|
byte[] bytes = baos.toByteArray(); |
|
|
|
return Base64.encode(bytes); |
|
|
|
return String.valueOf(Base64.getEncoder().encode(bytes)); |
|
|
|
//return encoder.encodeBuffer(bytes); |
|
|
|
|
|
|
|
} catch (IOException e) { |
|
|
|