From bd6229ebd9cb543a22944ecb1142fad92b675dce Mon Sep 17 00:00:00 2001 From: rk <94314517@qq.com> Date: 星期一, 13 十月 2025 14:26:25 +0800 Subject: [PATCH] bug 修复 --- server/admin/src/main/java/com/doumee/api/business/PaymentCallback.java | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/server/admin/src/main/java/com/doumee/api/business/PaymentCallback.java b/server/admin/src/main/java/com/doumee/api/business/PaymentCallback.java index 8539e1c..1c2656f 100644 --- a/server/admin/src/main/java/com/doumee/api/business/PaymentCallback.java +++ b/server/admin/src/main/java/com/doumee/api/business/PaymentCallback.java @@ -1,6 +1,7 @@ package com.doumee.api.business; import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; import com.doumee.config.wx.TransferDetailEntityNew; import com.doumee.config.wx.WxMiniConfig; import com.doumee.core.constants.Constants; @@ -59,6 +60,7 @@ */ @PostMapping("/web/wxPayNotify") public ApiResponse wxPay_notify(HttpServletRequest request) { + log.error("寰俊鏀粯鍥炶皟缁撴灉寮�濮�===========" ); try { ServletInputStream inputStream = request.getInputStream(); StringBuffer stringBuffer = new StringBuffer(); @@ -83,13 +85,7 @@ .body(body) .build(); - NotificationConfig config = /*new RSAAutoCertificateConfig.Builder() - .merchantId(WxMiniConfig.wxProperties.getMchId()) - .privateKeyFromPath(WxMiniConfig.wxProperties.getPrivateKeyPath()) - .merchantSerialNumber(WxMiniConfig.wxProperties.getSerialNumer()) - .apiV3Key(WxMiniConfig.wxProperties.getApiV3Key()) - .build(); */ - new RSAPublicKeyConfig.Builder() + NotificationConfig config = new RSAPublicKeyConfig.Builder() .merchantId(WxMiniConfig.wxProperties.getMchId()) .privateKeyFromPath(WxMiniConfig.wxProperties.getPrivateKeyPath()) .publicKeyFromPath(WxMiniConfig.wxProperties.getPubKeyPath()) @@ -103,6 +99,7 @@ Transaction result = parser.parse(requestParam, Transaction.class); + log.error("鏀粯鍥炶皟淇℃伅锛歿}"+ JSONObject.toJSONString(result)); //鑷畾涔夎鍗曞彿 String outTradeNo = result.getOutTradeNo(); //寰俊璁㈠崟鍙� @@ -119,11 +116,12 @@ } else { // 鏀粯澶辫触 switch (result.getAttach()) { - case "createGoodsOrder": { + case "createOrder": { break; } } } + log.error("寰俊鏀粯鍥炶皟缁撴灉缁撴潫===========" ); return ApiResponse.success("澶勭悊鎴愬姛!"); } catch (Exception e) { e.printStackTrace(); -- Gitblit v1.9.3