提交 ff594c9d authored 作者: aiqingguo's avatar aiqingguo

承运借款流程-宁波银行

上级 89e5b7b8
......@@ -14,7 +14,7 @@ import com.nbopen.api.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
......@@ -46,11 +46,13 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
downloadUsingStream(nbBankConfig.getPublicKeyPath(), "/app/nbbank/bankPubKey.cer");
downloadUsingStream(nbBankConfig.getPrivateKeyPath(), "/app/nbbank/bankPrivateKey.sm2");
downloadUsingStream(nbBankConfig.getPrivateKeyPath(), "/app/nbbank/bankConfig.json");
FileSystemResource resource = new FileSystemResource("/app/nbbank/bankConfig.json");
ClassPathResource classPathResource = new ClassPathResource("bank/config-nbbank.json");
InputStream inputStream;
try {
inputStream = classPathResource.getInputStream();
inputStream = resource.getInputStream();
boolean initResult = NBOpenSDK.init(inputStream);
log.info("宁波银行SDK初始化, 状态:{}", initResult);
log.info("sdk版本信息:{}", NBOpenSDK.getVersionInfo());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论