|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.ningdatech.pmapi.irs.sign; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.ningdatech.basic.exception.BizException; |
|
|
|
import com.ningdatech.basic.util.StrPool; |
|
|
@@ -74,7 +75,16 @@ public class IRSAPIRequest { |
|
|
|
throw new BizException("调用IRS盖章接口失败,印章编号为:" + sealSn + StrPool.SEMICOLON + e.getMessage()); |
|
|
|
} |
|
|
|
// return obj; |
|
|
|
return resp.getBytes(); |
|
|
|
JSONObject jsonObject = JSON.parseObject(resp, JSONObject.class); |
|
|
|
String data = jsonObject.getString("data"); |
|
|
|
JSONObject object = JSON.parseObject(data, JSONObject.class); |
|
|
|
// 获取盖好章的PDF文件内容Base64字符串 |
|
|
|
String signFileB64 = object.getString("signFileB64"); |
|
|
|
if (Objects.nonNull(signFileB64)){ |
|
|
|
return signFileB64.getBytes(); |
|
|
|
}else { |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|