From 836ec39fdad422b1a148699a4c5fb8c5b4d395f0 Mon Sep 17 00:00:00 2001
From: zuoxiao <lf_zuo@163.com>
Date: 星期三, 25 六月 2025 11:04:33 +0800
Subject: [PATCH] feat(card): 添加管理类型卡写卡功能并优化卡片相关逻辑- 在 OperateTypeENUM 中添加 SUPPLEMENT 和 MANAGEMENT_CARD_WRITE 枚举值 - 在 SeManagementCard 中添加 cancelTime 和 state 字段 - 更新相关 mapper 和 XML 文件以支持新增字段 - 修改 CardSv 中的回调处理逻辑,支持管理类型卡写卡 - 优化 CreateManagementCardDto 中识别码的示例值

---
 pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/config/RestTemplateConfig.java |   40 ++++++----------------------------------
 1 files changed, 6 insertions(+), 34 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/config/RestTemplateConfig.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/config/RestTemplateConfig.java
index 3ba853d..58cefe3 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/config/RestTemplateConfig.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/config/RestTemplateConfig.java
@@ -22,40 +22,6 @@
     @Autowired
     private RestTemplateWechatCertConfig restTemplateWechatCertConfig;
 
-    //@Bean
-    //public RestTemplate restTemplate() {
-    //    return new RestTemplate();
-    //}
-
-    //@Bean
-    //public RestTemplate restTemplate() {
-    //    String mchid = PayInfo.mchid;
-    //    RestTemplate restTemplate = null;
-    //    try {
-    //        KeyStore keyStore = KeyStore.getInstance("PKCS12");
-    //        //InputStream cp = this.getClass().getResourceAsStream("apiclient_cert.p12");
-    //        FileInputStream instream = new FileInputStream(new File("C:\\webchat\\apiclient_cert.p12"));
-    //        keyStore.load(instream, mchid.toCharArray());
-    //        // Trust own CA and all self-signed certs
-    //        SSLContext sslcontext = SSLContextBuilder.create()
-    //                .loadKeyMaterial(keyStore, mchid.toCharArray())
-    //                .build();
-    //         //Allow TLSv1 protocol only
-    //        SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslcontext, new String[]{"TLSv1"}, null, NoopHostnameVerifier.INSTANCE);
-    //        CloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(sslsf).build();
-    //        HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory(httpClient);
-    //
-    //        restTemplate = new RestTemplate(factory);
-    //        //灏嗚浆鎹㈠櫒鐨勭紪鐮佹崲鎴恥tf-8
-    //        restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(Charset.forName("utf-8")));
-    //        //System.out.println("restTemplate.hashCode():" + restTemplate.hashCode());
-    //    } catch (Exception e) {
-    //        e.printStackTrace();
-    //    }
-    //    return restTemplate;
-    //}
-
-    //@Bean(name = "wechatRestTemplate")
     @Bean()
     public RestTemplate restTemplate() throws Exception {
         RestTemplate restTemplate = new RestTemplate(restTemplateWechatCertConfig.wechatHttpRequestFactory());
@@ -76,4 +42,10 @@
 
         return restTemplate;
     }
+
+    //绠�鍗昍estTemplate瀹炰緥
+    @Bean
+    public RestTemplate simpleRestTemplate() {
+        return new RestTemplate();
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0