Pu Zhibing
21 小时以前 1da73e129402bb3923e92f3d561ac49acc87fee5
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java
@@ -135,7 +135,6 @@
        try  {
            //这里和普通的接口调用不同,使用的是sdkExecute
            AlipayTradeAppPayResponse response = alipayClient.sdkExecute(request);
            System.out.println(response.getBody());//就是orderString 可以直接给客户端请求,无需再做处理。
            return ResultUtil.success(response.getBody());
        }  catch (AlipayApiException e ) {
            e.printStackTrace();
@@ -609,7 +608,7 @@
        Map<String, String> map1 = null;
        String body1 = null;
        try {
            String certPath = "D:\\app\\cert\\weixin\\1716524249\\apiclient_cert.p12";
            String certPath = "D:\\app\\cert\\weixin\\1602881362\\apiclient_cert.p12";
            body1 = httpClientUtil.pushHttpsRequsetXml(url, xmlString.toString(), new HashMap<>(),  mchId, certPath, "PKCS12");
        } catch (Exception e) {
            e.printStackTrace();
@@ -865,7 +864,7 @@
        // 一个商户号只能初始化一个配置,否则会因为重复的下载任务报错
        Config config = new RSAAutoCertificateConfig.Builder()
                    .merchantId(mchId)
                    .privateKeyFromPath("D:\\app\\cert\\weixin\\1716524249\\apiclient_key.pem")
                    .privateKeyFromPath("D:\\app\\cert\\weixin\\1602881362\\apiclient_key.pem")
                    .merchantSerialNumber("5410CEAE9C7E9CDFCB58B88E1C607D2841F62437")
                    .apiV3Key("FCB58B88E1C607D2841F62437QIGZOdM")
                    .build();
@@ -920,7 +919,7 @@
        xmlString.append("</xml>");
        Map<String, String> map1 = null;
        String certPath = "D:\\app\\cert\\weixin\\1716524249\\apiclient_cert.p12";//证书地址
        String certPath = "D:\\app\\cert\\weixin\\1602881362\\apiclient_cert.p12";//证书地址
        String body1 = httpClientUtil.pushHttpsRequsetXml(url, xmlString.toString(), new HashMap<>(), mchId, certPath, "PKCS12");
        //将结果xml解析成map
        body1 = body1.replaceAll("<!\\[CDATA\\[","");
@@ -997,7 +996,7 @@
        xmlString.append("</xml>");
        Map<String, String> map1 = null;
        String certPath = "D:\\app\\cert\\weixin\\1716524249\\apiclient_cert.p12";//证书地址
        String certPath = "D:\\app\\cert\\weixin\\1602881362\\apiclient_cert.p12";//证书地址
        String body1 = httpClientUtil.pushHttpsRequsetXml(url, xmlString.toString(), new HashMap<>(), mchId, certPath, "PKCS12");
        //将结果xml解析成map
        body1 = body1.replaceAll("<!\\[CDATA\\[","");