|
|
@@ -3,6 +3,7 @@ package com.hz.pm.api.todocenter.manage; |
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.bean.copier.CopyOptions; |
|
|
|
import cn.hutool.core.codec.Base64; |
|
|
|
import cn.hutool.core.codec.Base64Decoder; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.map.MapUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
@@ -102,7 +103,6 @@ import org.springframework.mock.web.MockMultipartFile; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
import sun.misc.BASE64Decoder; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.ByteArrayInputStream; |
|
|
@@ -487,10 +487,9 @@ public class TodoCenterManage { |
|
|
|
String signPdf = IRSAPIRequest.createSignPdf(signReq); |
|
|
|
ByteArrayInputStream inputStream = null; |
|
|
|
if (Objects.nonNull(signPdf)) { |
|
|
|
BASE64Decoder decoder = new BASE64Decoder(); |
|
|
|
try { |
|
|
|
//转码 |
|
|
|
byte[] b = decoder.decodeBuffer(signPdf); |
|
|
|
byte[] b = Base64Decoder.decode(signPdf); |
|
|
|
for (int i = 0; i < b.length; ++i) { |
|
|
|
if (b[i] < 0) {//调整异常数据 |
|
|
|
b[i] += 256; |
|
|
|