Commit f99a7179 authored by huyuchen's avatar huyuchen

huych-商险到期提醒修改

parent dfbb3490
......@@ -34,7 +34,6 @@ import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import java.net.URL;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
......@@ -123,20 +122,38 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
// 获取当前类加载器
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
// 获取资源的URL
URL resourceUrl = classLoader.getResource("/file/ahwx_y_1302.cer");
URL resourceUrl1 = classLoader.getResource("/file/API_GATEWAY_ICBC_SM_REAL.cer");
String ca_sm = IcbcSignature.getCAInfoStr(resourceUrl.getPath());
String ca_sm_icbc = IcbcSignature.getCAInfoStr(resourceUrl1.getPath());
// URL resourceUrl = classLoader.getResource("/file/ahwx_y_1302.cer");
// URL resourceUrl1 = classLoader.getResource("/file/API_GATEWAY_ICBC_SM_REAL.cer");
// String ca_sm = IcbcSignature.getCAInfoStr(resourceUrl.getPath());
// String ca_sm_icbc = IcbcSignature.getCAInfoStr(resourceUrl1.getPath());
// String ca_sm = IcbcSignature.getCAInfoStr(ca_sm_path);
// String ca_sm_icbc = IcbcSignature.getCAInfoStr(ca_sm_icbc_path);
log.error("文件地址:" + resourceUrl.getPath() + "转化后的编码" + ca_sm);
log.error("文件地址1:" + resourceUrl1.getPath() + "转化后的编码1" + ca_sm_icbc);
// log.error("文件地址:" + resourceUrl.getPath() + "转化后的编码" + ca_sm);
// log.error("文件地址1:" + resourceUrl1.getPath() + "转化后的编码1" + ca_sm_icbc);
// DefaultIcbcClient(appid, 签名类型, SM2企业私钥, 编码格式, 数据格式, null, null, null, SM2 cer公钥串, null)
DefaultIcbcClient client = new DefaultIcbcClient(icbcConfigProperties.getAppId(), IcbcConstants.SIGN_TYPE_CA_SM_ICBC,
icbcConfigProperties.getAppPrivateKey(), IcbcConstants.CHARSET_UTF8, IcbcConstants.FORMAT_JSON, null,
null, null, ca_sm, null);
client.setIcbc_ca(ca_sm_icbc);
null, null, "MIICSTCCAeygAwIBAgIGAJuAEtYAMAwGCCqBHM9VAYN1BQAwQTELMAkGA1UEBhMCY24xGzAZBgNVBAoMEnNtMmNvci5pY2JjLmNvbS5jbjEVMBMGA1UEAwwMc20ycm9vdGNhY29yMB4XDTIzMTIyMTA5NTAxNloXDTI4MTIyMTE1NTk1OVowVDELMAkGA1UEBhMCY24xGzAZBgNVBAoMEnNtMmNvci5pY2JjLmNvbS5jbjENMAsGA1UECwwEMTMwMjEZMBcGA1UEAwwQYWh3eC55LjEzMDIuMDIwMTBZMBMGByqGSM49AgEGCCqBHM9VAYItA0IABGEC1fF2rHTWfipQhOr+8SfvXDBiazIrImcsPH5aGaYMFK2RIXv0AF2xe2ZgAzcWRbgop0cAjaBHXpzSfIlnfl6jgbowgbcwHwYDVR0jBBgwFoAUDD6RRlIIkxjZ0/0x6S8mKdW3D2YwCQYDVR0TBAIwADBdBgNVHR8EVjBUMFKgUKBOpEwwSjEQMA4GA1UEAwwHY3JsNDE3MDEMMAoGA1UECwwDY3JsMRswGQYDVQQKDBJzbTJjb3IuaWNiYy5jb20uY24xCzAJBgNVBAYTAmNuMAsGA1UdDwQEAwIHgDAdBgNVHQ4EFgQUd0LHEI6l7Faq6/9GObNld3SH7xswDAYIKoEcz1UBg3UFAANJADBGAiEA68uRM5zYzMhaheAG+fw3AtkRFE5146+Qw6GVP93WojwCIQDzsIL3duLRtTot8ciVuKUQkI+GrXAg7nWnd2M2o9oRBw==", null);
client.setIcbc_ca("MIIDdDCCAxegAwIBAgIFRjBiNDYwDAYIKoEcz1UBg3UFADBcMQswCQYDVQQGEwJD\n" +
"TjEwMC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9y\n" +
"aXR5MRswGQYDVQQDDBJDRkNBIEFDUyBTTTIgT0NBMzEwHhcNMjMwMjE1MDkyMT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\n" +
"VTSwJlhrVbmEB5DmoxLo1Xb/1tvfW1l2");
MybankEnterpriseTradeQhisdRequestV1.MybankEnterpriseTradeQhisdRequestBizV1 bizContent =
new MybankEnterpriseTradeQhisdRequestV1.MybankEnterpriseTradeQhisdRequestBizV1();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment