From 717e9a9dd896b1e279d754b9a0b37b9e2d975e2f Mon Sep 17 00:00:00 2001 From: mirage <1127314491@qq.com> Date: Thu, 2 Apr 2026 14:37:37 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=B7=BB=E5=8A=A0=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=85=AC=E7=BD=91IP=E6=8E=A5=E5=8F=A3=202.=20=E5=85=A5?= =?UTF-8?q?=E5=8F=82=E5=8F=96=E6=B6=88=E4=B8=8B=E5=88=92=E7=BA=BF=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=203.=20=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E5=8F=B7?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=204.=20=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E4=B8=8B=E5=8D=95=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mdd/front/service/impl/DfpOpenPayServiceImpl.java | 3 ++- server/like-front/src/main/resources/application-dev.yml | 4 ++-- server/like-front/src/main/resources/application.yml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/like-front/src/main/java/com/mdd/front/service/impl/DfpOpenPayServiceImpl.java b/server/like-front/src/main/java/com/mdd/front/service/impl/DfpOpenPayServiceImpl.java index 0a35df29..94b97d47 100644 --- a/server/like-front/src/main/java/com/mdd/front/service/impl/DfpOpenPayServiceImpl.java +++ b/server/like-front/src/main/java/com/mdd/front/service/impl/DfpOpenPayServiceImpl.java @@ -73,6 +73,7 @@ public class DfpOpenPayServiceImpl implements IDfpOpenPayService { Map 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); diff --git a/server/like-front/src/main/resources/application-dev.yml b/server/like-front/src/main/resources/application-dev.yml index 32ebabf5..9327c48d 100644 --- a/server/like-front/src/main/resources/application-dev.yml +++ b/server/like-front/src/main/resources/application-dev.yml @@ -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 diff --git a/server/like-front/src/main/resources/application.yml b/server/like-front/src/main/resources/application.yml index c03ee8a9..85570770 100644 --- a/server/like-front/src/main/resources/application.yml +++ b/server/like-front/src/main/resources/application.yml @@ -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 \ No newline at end of file