wangming 1 maand geleden
bovenliggende
commit
3e7b8f3c17

+ 1 - 26
yami-shop-api/src/main/resources/application-dev.yml

@@ -18,29 +18,4 @@ spring:
       config: classpath:redisson/redisson-dev.yml
 
 logging:
-  config: classpath:logback/logback-dev.xml
-
-#服务商
-services:
-  #服务商AppId
-  spAppId: wx43b5b906cc30ed0b
-  #服务商商户号
-  spMchId: 1725845681
-  #商户AppId
-  subAppId: wxbc64403830bb13c5
-  #商户号
-  subMchId: 1726971843
-  # APIv2密钥
-  apiKey: 4b64e17419689527b256f07cdf6bd60c
-  # APIv3密钥
-  apiV3Key: 4b64e17419689527b256f07cdf6bd60c
-  # 微信支付V3-url前缀
-  baseUrl: https://api.mch.weixin.qq.com/v3
-  # 密钥路径,resources根目录下
-  keyPemPath: apiclient_key.pem
-  #商户证书序列号
-  serialNo: 65E9559D81ADA0BDA0CD3CF484A59A8DFB5610BE
-  #支付回调
-  notifyUrl: http://xx.xx.xx.xx:xx/wxpay/notify
-  #退款回调
-  refundNotifyUrl: http://xx.xx.xx.xx:xx/wxpay/notify
+  config: classpath:logback/logback-dev.xml

+ 25 - 0
yami-shop-api/src/main/resources/application.yml

@@ -60,3 +60,28 @@ server:
 application:
   datacenterId: 1
   workerId: 1
+
+#服务商
+services:
+  #服务商AppId
+  spAppId: wx43b5b906cc30ed0b
+  #服务商商户号
+  spMchId: 1725845681
+  #商户AppId
+  subAppId: wxbc64403830bb13c5
+  #商户号
+  subMchId: 1726971843
+  # APIv2密钥
+  apiKey: 4b64e17419689527b256f07cdf6bd60c
+  # APIv3密钥
+  apiV3Key: 4b64e17419689527b256f07cdf6bd60c
+  # 微信支付V3-url前缀
+  baseUrl: https://api.mch.weixin.qq.com/v3
+  # 密钥路径,resources根目录下
+  keyPemPath: apiclient_key.pem
+  #商户证书序列号
+  serialNo: 65E9559D81ADA0BDA0CD3CF484A59A8DFB5610BE
+  #支付回调
+  notifyUrl: http://xx.xx.xx.xx:xx/wxpay/notify
+  #退款回调
+  refundNotifyUrl: http://xx.xx.xx.xx:xx/wxpay/notify

+ 1 - 1
yami-shop-wx/src/main/java/com/yami/shop/wx/service/impl/WxProviderServiceImpl.java

@@ -540,7 +540,7 @@ public class WxProviderServiceImpl implements WxProviderService {
                 // 解密resource中的通知数据
                 String resource = bodyJson.getString("resource");
                 JSONObject resourceJson = WechatPayValidator.decryptFromResource(resource, wechatPayServiceConfig.getApiV3Key());
-                log.info("  =================== 服务商小程序支付回调解密resource中的通知数据 ===================\n" + resourceJson);
+                System.out.println("=================== 服务商小程序支付回调解密resource中的通知数据 ===================\n" + resource);
                 Integer trans = statusTrans(resourceJson.getString("trade_state"));
                 if (trans == 1) {
                     JSONObject successJson = trueMsg(response);