feat:微信付款码支付线上配置

This commit is contained in:
dzc committed 2025-06-09 14:26:59 +08:00
1 parent 4ed7fe3136
commit 40809f3fa6
4 files changed
+18 -8

No files matched your search

@@ -10,6 +10,11 @@ public class HardOrderSumAndCountDto {
private List<Long> userDeptIds;
/**
* 是否包含deptIds
*/
private Boolean isInclude = false;
private List<String> orderStatusCodes;
private LocalDateTime[] createTimeList;
@@ -40,4 +40,8 @@ public class WechatPay {
*/
private String refundCallbackUrl;
/**
* 调用ip
*/
private String spbillCreateIp;
}
@@ -160,7 +160,7 @@ public class WechatPayServiceImpl implements WechatPayService {
// 订单金额(分)
params.put("total_fee", dto.getPrice());
// 终端IP
params.put("spbill_create_ip", "220.191.229.131");
params.put("spbill_create_ip", wechatPay.getSpbillCreateIp());
// 付款码
params.put("auth_code", dto.getWechatQrCode());
// 生成签名
@@ -25,10 +25,11 @@ spring:
# pay-callback:
# lb-mch-id: 1919673632357584898
wechat-pay:
merchant-id: 1718803142
api-v2-key: EDn3OfIZZFwyS9Obx73XgQ8NHt01piUa
app-id: wx4ec0210f4bf42f9f
base-url: https://api.mch.weixin.qq.com
refund-callback-url: https://rj4jv5rwqs.by.takin.cc/hard/hard-wechant-pay/callback/refund
merchant-serial-path: /Users/dengzhangchen/Desktop/backups/pay/cert/apiclient_cert.p12
#wechat-pay:
# merchant-id: 1718803142
# api-v2-key: EDn3OfIZZFwyS9Obx73XgQ8NHt01piUa
# app-id: wx4ec0210f4bf42f9f
# base-url: https://api.mch.weixin.qq.com
# refund-callback-url: https://rj4jv5rwqs.by.takin.cc/hard/hard-wechant-pay/callback/refund
# merchant-serial-path: /Users/dengzhangchen/Desktop/backups/pay/cert/apiclient_cert.p12
# spbill-create-ip: 59.202.170.152