Browse Source

Merge branch 'dev/2024/0703/update-app-Y' of Harper/feifan-backend-zx-app into master

新增支付通道
Yangzw 8 months ago
parent
commit
4633a8bf0c

+ 1 - 1
feifan-module-pay/feifan-module-pay-api/src/main/java/cn/newfeifan/mall/module/pay/enums/DictTypeConstants.java

@@ -18,7 +18,7 @@ public interface DictTypeConstants {
     // 富友支付的商户私钥
     String privateKey = "b58ef4203dbe11ef3effcedc419c26ae";
 
-    // 富支付的商户号
+    // 富支付的商户号
     String mchnt_cd = "0006420F7357129";
 
 }

+ 2 - 0
feifan-module-pay/feifan-module-pay-biz/src/main/java/cn/newfeifan/mall/module/pay/service/fuyouorder/FiYouPayOrderServiceImpl.java

@@ -77,9 +77,11 @@ public class FiYouPayOrderServiceImpl implements FuYouPayOrderService {
                 .append(privateKey);
         requestVO.getReq().setSign(MD5.MD5Encode(sb.toString()));
         String res = null;
+            log.info("向富友发起微信支付请求 == 请求体:{}", JSON.toJSONString(requestVO.getReq()));
         try {
             res = http.newPost(JSON.toJSONString(requestVO.getReq()));
 
+            log.info("向富友发起微信支付请求 == 响应体:{}", res);
             // 解析返回结果,获取参数
             ObjectMapper mapper = new ObjectMapper();
             FuYouPaymentResponseVO resp = mapper.readValue(res, FuYouPaymentResponseVO.class);