From c436aa8d9d4ba815d13d2fa205f1cc46d63a552d Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Tue, 1 Oct 2024 10:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/iocoder/yudao/util/WechatPayConfig.java | 4 ++-- .../service/impl/AppInspectionGoodsServiceImpl.java | 3 ++- .../yudao/module/payment/controller/WxPayController.java | 4 +++- .../mapper/inspection/AppInspectionPartnerMapper.xml | 2 +- .../rescue/app/controller/admin/RescueDriverSocket.java | 2 +- .../module/rescue/controller/admin/RescuePayController.java | 2 ++ .../security/config/YudaoWebSecurityConfigurerAdapter.java | 2 +- yudao-server/src/main/resources/application.yaml | 4 ++++ 8 files changed, 16 insertions(+), 7 deletions(-) diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/util/WechatPayConfig.java b/dl-module-base/src/main/java/cn/iocoder/yudao/util/WechatPayConfig.java index d0087e46..172802d3 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/util/WechatPayConfig.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/util/WechatPayConfig.java @@ -53,7 +53,8 @@ public class WechatPayConfig { /** * 支付通知回调地址 */ - private String notifyUrl="https://www.nuoyunr.com/rescue/rescuePayApi/payNotify"; + private String notifyUrl="https://www.nuoyunr.com/admin-api/rescuePayApi/payNotify"; + private String jcNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/payNotify"; /** * 退款回调地址 */ @@ -83,7 +84,6 @@ public class WechatPayConfig { private String jcAppId = "wx5eeea06aeaae4f89"; private String jcAppSecret = "42207958589342d9d1d287b9cb53e289"; - private String jcNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/payNotify"; private String jcRefundNotifyUrl="https://www.nuoyunr.com/admin-api/payApi/refundNotify"; private String repairAppId="wxee677d54037bc5ac"; diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionGoodsServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionGoodsServiceImpl.java index 85c0ce34..c1e1f1fc 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionGoodsServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionGoodsServiceImpl.java @@ -35,6 +35,7 @@ import org.springframework.stereotype.Service; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; @@ -385,7 +386,7 @@ public class AppInspectionGoodsServiceImpl extends ServiceImpl jcPrepayment(String type,Long orderId) throws SignatureException, NoSuchAlgorithmException, InvalidKeyException, IOException { LoginUser loginUser = SecurityFrameworkUtils.getLoginUser(); @@ -198,7 +200,7 @@ public class WxPayController { String prepayId = this.toGetPayInfo(wechatPayConfig.getJcAppId(), bankInfo.getMchId(), bankInfo.getApiclientKey(), orderInfo.getPayMoney().intValue() , user.getJcOpenId(), bankInfo.getSerialNo(), bankInfo.getApiV3Key(), orderInfo.getGoodsTitle(), - wechatPayConfig.getNotifyUrl(), orderInfo.getOrderNo()); + wechatPayConfig.getJcNotifyUrl(), orderInfo.getOrderNo()); Map resMap = paySignMsg(prepayId, wechatPayConfig.getJcAppId(),bankInfo.getApiclientKey()); return resMap; } diff --git a/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml b/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml index b7039a01..f1451549 100644 --- a/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml +++ b/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml @@ -113,7 +113,7 @@ sum((oi.pay_time like CONCAT(#{timeStr},'%') and oi.create_time like CONCAT(#{timeStr},'%'))),0) as workedNum FROM order_info oi - WHERE oi.partner_id = #{partnerId} +