From bbb1d4b9787d840db782d84a7cb007711cfd4cad Mon Sep 17 00:00:00 2001
From: “mitao” <“2763622819@qq.com”>
Date: 星期一, 15 十二月 2025 11:35:18 +0800
Subject: [PATCH] fix:项目启动报错获取不到工行支付配置

---
 /dev/null                                            |   56 -----------
 ruoyi-admin/src/main/resources/application-test.yml  |   58 +++++++++++
 ruoyi-applet/src/main/resources/application-prod.yml |   57 +++++++++++
 ruoyi-admin/src/main/resources/application-prod.yml  |   58 +++++++++++
 ruoyi-applet/src/main/resources/application-test.yml |   60 +++++++++++
 5 files changed, 230 insertions(+), 59 deletions(-)

diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml
index d501239..8313ab3 100644
--- a/ruoyi-admin/src/main/resources/application-prod.yml
+++ b/ruoyi-admin/src/main/resources/application-prod.yml
@@ -201,4 +201,60 @@
 wx:
   conf:
     appId:
-    secretId:
\ No newline at end of file
+    secretId:
+icbc:
+  api:
+    # 聚合支付B2C线上消费下单接口url (无界面)
+    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
+
+    # 订单拆分请求url
+    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单拆分前退款url
+    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
+
+    # 订单拆分后退款url
+    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单支付查询url
+    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
+
+    # 订单退款查询url
+    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
+
+    # 完整的回调通知地址,支付完成后通知商户的URL
+    notify-url: ""
+
+    # 回调方法的路径
+    notify-url-method: "/icbc/icbcNotify"
+
+
+
+  keys:
+    # 我方私钥,用于签名请求
+    my-private-key: ""
+
+    # 对方(即工行)网关公钥,用于验证返回的签名
+    api-gw-public-key: ""
+
+  # APP的编号,应用在API开放平台注册时生成
+  app-id: ""
+
+  # 商户编号,用于标识商户账户
+  mer-id: ""
+
+  # 收单产品协议编号,商户与银行的协议编号
+  mer-prtcl-no: ""
+
+  # 设备号,设备的唯一标识符
+  decive-info: ""
+
+  # 微信APP的编号,便于与微信支付接口对接
+  wx-app-id: ""
+
+  # 微信公众号的APP编号,供公众号支付使用
+  wx-gzh-app-id: ""
+
+  # 订单超时时间,单位为分钟
+  expire-time: "300"
+
diff --git a/ruoyi-admin/src/main/resources/application-test.yml b/ruoyi-admin/src/main/resources/application-test.yml
index e22e75d..2501afe 100644
--- a/ruoyi-admin/src/main/resources/application-test.yml
+++ b/ruoyi-admin/src/main/resources/application-test.yml
@@ -217,4 +217,60 @@
       # 支付成功回调地址
       notifyPayUrl:
       # 支付退款回调地址
-      notifyRefundUrl:
\ No newline at end of file
+      notifyRefundUrl:
+icbc:
+  api:
+    # 聚合支付B2C线上消费下单接口url (无界面)
+    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
+
+    # 订单拆分请求url
+    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单拆分前退款url
+    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
+
+    # 订单拆分后退款url
+    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单支付查询url
+    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
+
+    # 订单退款查询url
+    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
+
+    # 完整的回调通知地址,支付完成后通知商户的URL
+    notify-url: ""
+
+    # 回调方法的路径
+    notify-url-method: "/icbc/icbcNotify"
+
+
+
+  keys:
+    # 我方私钥,用于签名请求
+    my-private-key: ""
+
+    # 对方(即工行)网关公钥,用于验证返回的签名
+    api-gw-public-key: ""
+
+  # APP的编号,应用在API开放平台注册时生成
+  app-id: ""
+
+  # 商户编号,用于标识商户账户
+  mer-id: ""
+
+  # 收单产品协议编号,商户与银行的协议编号
+  mer-prtcl-no: ""
+
+  # 设备号,设备的唯一标识符
+  decive-info: ""
+
+  # 微信APP的编号,便于与微信支付接口对接
+  wx-app-id: ""
+
+  # 微信公众号的APP编号,供公众号支付使用
+  wx-gzh-app-id: ""
+
+  # 订单超时时间,单位为分钟
+  expire-time: "300"
+
diff --git a/ruoyi-applet/src/main/resources/application-prod.yml b/ruoyi-applet/src/main/resources/application-prod.yml
index 10c4c27..7214798 100644
--- a/ruoyi-applet/src/main/resources/application-prod.yml
+++ b/ruoyi-applet/src/main/resources/application-prod.yml
@@ -228,3 +228,60 @@
   secretid: AKIDCF5EF2c0DE1e5JK8r4EGJF4mNsMgp26x
   secretkey: lLl184rUyFOOE0d5KNGC3kmfNsCWk4GU
   sign: 畅云出行
+icbc:
+  api:
+    # 聚合支付B2C线上消费下单接口url (无界面)
+    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
+
+    # 订单拆分请求url
+    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单拆分前退款url
+    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
+
+    # 订单拆分后退款url
+    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单支付查询url
+    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
+
+    # 订单退款查询url
+    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
+
+    # 完整的回调通知地址,支付完成后通知商户的URL
+    notify-url: ""
+
+    # 回调方法的路径
+    notify-url-method: "/icbc/icbcNotify"
+
+
+
+  keys:
+    # 我方私钥,用于签名请求
+    my-private-key: ""
+
+    # 对方(即工行)网关公钥,用于验证返回的签名
+    api-gw-public-key: ""
+
+  # APP的编号,应用在API开放平台注册时生成
+  app-id: ""
+
+  # 商户编号,用于标识商户账户
+  mer-id: ""
+
+  # 收单产品协议编号,商户与银行的协议编号
+  mer-prtcl-no: ""
+
+  # 设备号,设备的唯一标识符
+  decive-info: ""
+
+  # 微信APP的编号,便于与微信支付接口对接
+  wx-app-id: ""
+
+  # 微信公众号的APP编号,供公众号支付使用
+  wx-gzh-app-id: ""
+
+  # 订单超时时间,单位为分钟
+  expire-time: "300"
+
+
diff --git a/ruoyi-applet/src/main/resources/application-test.yml b/ruoyi-applet/src/main/resources/application-test.yml
index e8d078a..131273f 100644
--- a/ruoyi-applet/src/main/resources/application-test.yml
+++ b/ruoyi-applet/src/main/resources/application-test.yml
@@ -217,4 +217,62 @@
       # 支付成功回调地址
       notifyPayUrl: http://221.182.45.100:9100/wx/pay/notify
       # 支付退款回调地址
-      notifyRefundUrl: http://221.182.45.100:9100/wx/refund/notify
\ No newline at end of file
+      notifyRefundUrl: http://221.182.45.100:9100/wx/refund/notify
+icbc:
+  api:
+    # 聚合支付B2C线上消费下单接口url (无界面)
+    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
+
+    # 订单拆分请求url
+    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单拆分前退款url
+    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
+
+    # 订单拆分后退款url
+    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
+
+    # 订单支付查询url
+    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
+
+    # 订单退款查询url
+    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
+
+    # 完整的回调通知地址,支付完成后通知商户的URL
+    notify-url: ""
+
+    # 回调方法的路径
+    notify-url-method: "/icbc/icbcNotify"
+
+
+
+  keys:
+    # 我方私钥,用于签名请求
+    my-private-key: ""
+
+    # 对方(即工行)网关公钥,用于验证返回的签名
+    api-gw-public-key: ""
+
+  # APP的编号,应用在API开放平台注册时生成
+  app-id: ""
+
+  # 商户编号,用于标识商户账户
+  mer-id: ""
+
+  # 收单产品协议编号,商户与银行的协议编号
+  mer-prtcl-no: ""
+
+  # 设备号,设备的唯一标识符
+  decive-info: ""
+
+  # 微信APP的编号,便于与微信支付接口对接
+  wx-app-id: ""
+
+  # 微信公众号的APP编号,供公众号支付使用
+  wx-gzh-app-id: ""
+
+  # 订单超时时间,单位为分钟
+  expire-time: "300"
+
+
+
diff --git a/ruoyi-applet/src/main/resources/icbcpay/icbc-config-dev.yml b/ruoyi-applet/src/main/resources/icbcpay/icbc-config-dev.yml
deleted file mode 100644
index 4fa3ef7..0000000
--- a/ruoyi-applet/src/main/resources/icbcpay/icbc-config-dev.yml
+++ /dev/null
@@ -1,55 +0,0 @@
-icbc:
-  api:
-    # 聚合支付B2C线上消费下单接口url (无界面)
-    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
-
-    # 订单拆分请求url
-    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
-
-    # 订单拆分前退款url
-    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
-
-    # 订单拆分后退款url
-    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
-
-    # 订单支付查询url
-    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
-
-    # 订单退款查询url
-    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
-
-    # 完整的回调通知地址,支付完成后通知商户的URL
-    notify-url: ""
-
-    # 回调方法的路径
-    notify-url-method: "/icbc/icbcNotify"
-
-
-
-  keys:
-    # 我方私钥,用于签名请求
-    my-private-key: ""
-    # 对方(即工行)网关公钥,用于验证返回的签名
-    api-gw-public-key: ""
-
-  # APP的编号,应用在API开放平台注册时生成
-  app-id: ""
-
-  # 商户编号,用于标识商户账户
-  mer-id: ""
-
-  # 收单产品协议编号,商户与银行的协议编号
-  mer-prtcl-no: ""
-
-  # 设备号,设备的唯一标识符
-  decive-info: ""
-
-  # 微信APP的编号,便于与微信支付接口对接
-  wx-app-id: ""
-
-  # 微信公众号的APP编号,供公众号支付使用
-  wx-gzh-app-id: ""
-
-  # 订单超时时间,单位为分钟
-  expire-time: "300"
-
diff --git a/ruoyi-applet/src/main/resources/icbcpay/icbc-config-prod.yml b/ruoyi-applet/src/main/resources/icbcpay/icbc-config-prod.yml
deleted file mode 100644
index 232ff6a..0000000
--- a/ruoyi-applet/src/main/resources/icbcpay/icbc-config-prod.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-icbc:
-  api:
-    # 聚合支付B2C线上消费下单接口url (无界面)
-    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
-
-    # 订单拆分请求url
-    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
-
-    # 订单拆分前退款url
-    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
-
-    # 订单拆分后退款url
-    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
-
-    # 订单支付查询url
-    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
-
-    # 订单退款查询url
-    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
-
-    # 完整的回调通知地址,支付完成后通知商户的URL
-    notify-url: ""
-
-    # 回调方法的路径
-    notify-url-method: "/icbc/icbcNotify"
-
-
-
-  keys:
-    # 我方私钥,用于签名请求
-    my-private-key: ""
-
-    # 对方(即工行)网关公钥,用于验证返回的签名
-    api-gw-public-key: ""
-
-  # APP的编号,应用在API开放平台注册时生成
-  app-id: ""
-
-  # 商户编号,用于标识商户账户
-  mer-id: ""
-
-  # 收单产品协议编号,商户与银行的协议编号
-  mer-prtcl-no: ""
-
-  # 设备号,设备的唯一标识符
-  decive-info: ""
-
-  # 微信APP的编号,便于与微信支付接口对接
-  wx-app-id: ""
-
-  # 微信公众号的APP编号,供公众号支付使用
-  wx-gzh-app-id: ""
-
-  # 订单超时时间,单位为分钟
-  expire-time: "300"
-
diff --git a/ruoyi-applet/src/main/resources/icbcpay/icbc-config-test.yml b/ruoyi-applet/src/main/resources/icbcpay/icbc-config-test.yml
deleted file mode 100644
index 232ff6a..0000000
--- a/ruoyi-applet/src/main/resources/icbcpay/icbc-config-test.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-icbc:
-  api:
-    # 聚合支付B2C线上消费下单接口url (无界面)
-    pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/consumepurchase/V1"
-
-    # 订单拆分请求url
-    suborder-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
-
-    # 订单拆分前退款url
-    refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/merrefund/V1"
-
-    # 订单拆分后退款url
-    sub-order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/sersuborder/V1"
-
-    # 订单支付查询url
-    order-pay-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/orderqry/V1"
-
-    # 订单退款查询url
-    order-refund-url: "https://gw.open.icbc.com.cn/api/cardbusiness/aggregatepay/b2c/online/refundqry/V1"
-
-    # 完整的回调通知地址,支付完成后通知商户的URL
-    notify-url: ""
-
-    # 回调方法的路径
-    notify-url-method: "/icbc/icbcNotify"
-
-
-
-  keys:
-    # 我方私钥,用于签名请求
-    my-private-key: ""
-
-    # 对方(即工行)网关公钥,用于验证返回的签名
-    api-gw-public-key: ""
-
-  # APP的编号,应用在API开放平台注册时生成
-  app-id: ""
-
-  # 商户编号,用于标识商户账户
-  mer-id: ""
-
-  # 收单产品协议编号,商户与银行的协议编号
-  mer-prtcl-no: ""
-
-  # 设备号,设备的唯一标识符
-  decive-info: ""
-
-  # 微信APP的编号,便于与微信支付接口对接
-  wx-app-id: ""
-
-  # 微信公众号的APP编号,供公众号支付使用
-  wx-gzh-app-id: ""
-
-  # 订单超时时间,单位为分钟
-  expire-time: "300"
-

--
Gitblit v1.7.1