1. 添加回调公网IP接口

2. 入参取消下划线格式
3. 修改订单号格式
4. 微信支付下单接口增加字段
This commit is contained in:
mirage 2026-04-02 14:37:37 +08:00
parent 8b320a0f18
commit 717e9a9dd8
3 changed files with 5 additions and 4 deletions

View File

@ -73,6 +73,7 @@ public class DfpOpenPayServiceImpl implements IDfpOpenPayService {
Map<String, String> bodyParams = baseBodyParams(outTradeNo, validate.getAmountFen(), bodyText, notifyUrl);
bodyParams.put("service", "pay.weixin.jspay");
bodyParams.put("is_minipg", "1");
bodyParams.put("is_raw", "1");
bodyParams.put("sub_appid", subAppId);
bodyParams.put("sub_openid", openId);
@ -167,7 +168,7 @@ public class DfpOpenPayServiceImpl implements IDfpOpenPayService {
}
// 正式规则QDKXJG-YBMJF-序号序号=自增ID
String outTradeNo = "QDKXJG-YBMJF-" + created.getId();
String outTradeNo = "QDKXJG_YBMJF_" + created.getId();
created.setOutTradeNo(outTradeNo);
enrollmentPayOrderMapper.updateById(created);

View File

@ -4,8 +4,8 @@ like:
# 框架配置
spring:
jackson:
property-naming-strategy: SNAKE_CASE #下划线返回值和获取值
# jackson:
# property-naming-strategy: SNAKE_CASE #下划线返回值和获取值
# 数据源配置
datasource:
url: jdbc:mysql://127.0.0.1:3306/la?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false

View File

@ -113,6 +113,6 @@ dfp-open:
appId: wxaf99770eb7b49cb7
# 开放银行异步通知完整 URL公网可达银行服务器必须能访问
# 注意:如果不配置,会尝试自动拼接 RequestUtils.uri() + /api/bank-fee/notify在反向代理/HTTPS 场景可能不准确)
# notify-url: https://你的域名/api/bank-fee/notify
notify-url: https://8.153.111.6:8084/api/bank-fee/notify
# 异步通知完整 URL公网可达银行服务器必须能访问。不填则使用 RequestUtils.uri() + /api/bank-fee/notify
# notify-url: https://你的域名/api/bank-fee/notify