Browse Source

fix:pc新微信商户支付配置修改

wrj 1 week ago
parent
commit
58de06f27c

+ 21 - 11
nightFragrance-admin/src/main/resources/application-dev.yml

@@ -16,7 +16,7 @@ ylx:
 # 开发环境配置
 server:
   # 服务器的HTTP端口,默认为8080
-  port: 8080
+  port: 8087
   servlet:
     # 应用的访问路径
     context-path: /
@@ -56,11 +56,14 @@ spring:
     driverClassName: com.mysql.cj.jdbc.Driver
     druid:
       # 主库数据源
+#      master:
+#        url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#        username: root
+#        password: 1234
       master:
-        url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+        url: jdbc:mysql://39.98.239.48:3366/night_fragrance?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
         username: root
-        password: 1234
-      # 从库数据源
+        password: '@RqGHG#KZ*C9ytkQ'
       slave:
         # 从数据源开关/默认关闭
         enabled: false
@@ -126,13 +129,13 @@ spring:
   # redis 配置
   redis:
     # 地址
-    host: localhost
+    host: 127.0.0.1
     # 端口,默认为6379
     port: 6379
     # 数据库索引
     database: 0
     # 密码
-    password: 123456
+    password: '123456'
     # 连接超时时间
     timeout: 10s
     lettuce:
@@ -210,19 +213,26 @@ wx:
   app-secret: 28504227c2662cfb1b39a5baf750bb59
 #  app-secret: 7439a36812c1850d060567bce51159ec
   # 商户号
-  mch-id: 1675015090
+  mch-id: 1716293620
   # 商户秘钥
-  mch-key: 39C9AIJ1RQKT3I8V16BYZ6LLBI0H30NB
+  mch-key: 29138927a706e34282df802feacfc18r
   # 异步回调地址
   notify-url: https://48131076.r21.cpolar.top/wx/pay/payNotify
   # 异步退款回调地址
   refund-Notify: https://48131076.r21.cpolar.top/wx/pay/refundNotify
+#  # 证书地址
+#  cert-path: D:/1675015090_20240424_cert/apiclient_cert.pem
+#  # 证书秘钥地址
+#  cert-key-path: D:/1675015090_20240424_cert/apiclient_key.pem
+#  # 微信平台证书
+#  plat-form-path: D:/1675015090_20240424_cert/plateForm.pem
+
   # 证书地址
-  cert-path: D:/1675015090_20240424_cert/apiclient_cert.pem
+  cert-path: C:/Users/Administrator/Downloads/WXCertUtil/cert/1716293620_20250507_cert/apiclient_cert.pem
   # 证书秘钥地址
-  cert-key-path: D:/1675015090_20240424_cert/apiclient_key.pem
+  cert-key-path: C:/Users/Administrator/Downloads/WXCertUtil/cert/1716293620_20250507_cert/apiclient_key.pem
   # 微信平台证书
-  plat-form-path: D:/1675015090_20240424_cert/plateForm.pem
+  plat-form-path: C:/Users/Administrator/Downloads/WXCertUtil/cert/1716293620_20250507_cert/plateForm.pem
 
   #通知类型1
   template_id_1: KPo5KM1R-_A6iBWOZpnA_J1w7ybORWboYqJX-PN0diQ

+ 6 - 2
nightFragrance-admin/src/main/resources/application-test.yml

@@ -206,10 +206,14 @@ wx:
   app-id: wxb2ae0f4ee11e8705
   # AppSecret(小程序密钥)
   app-secret: 28504227c2662cfb1b39a5baf750bb59
+
   # 商户号
-  mch-id: 1675015090
+  # mch-id: 1675015090
+  mch-id: 1716293620
+
   # 商户秘钥
-  mch-key: 39C9AIJ1RQKT3I8V16BYZ6LLBI0H30NB
+  #mch-key: 39C9AIJ1RQKT3I8V16BYZ6LLBI0H30NB
+  mch-key: 29138927a706e34282df802feacfc18r
   # 异步回调地址
   notify-url: https://test.baoxianzhanggui.com/nightFragrance/wx/pay/payNotify
   # 异步退款回调地址