From c791b9b91a43becdf70b4150aa0a4275916b2a9d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 26 十月 2023 11:30:23 +0800
Subject: [PATCH] 优化代码
---
springboot/src/main/java/com/java110/boot/controller/app/payment/wechat/WechatNotifyPaymentController.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/springboot/src/main/java/com/java110/boot/controller/app/payment/wechat/WechatNotifyPaymentController.java b/springboot/src/main/java/com/java110/boot/controller/app/payment/wechat/WechatNotifyPaymentController.java
index 05f48b7..c1f96fd 100644
--- a/springboot/src/main/java/com/java110/boot/controller/app/payment/wechat/WechatNotifyPaymentController.java
+++ b/springboot/src/main/java/com/java110/boot/controller/app/payment/wechat/WechatNotifyPaymentController.java
@@ -25,12 +25,13 @@
* @param request
* @throws Exception
*/
- @RequestMapping(path = "/wechat/{appId}/{communityId}", method = RequestMethod.POST)
- public ResponseEntity<String> notify(@RequestBody String postInfo, @PathVariable String appId,@PathVariable String communityId, HttpServletRequest request) {
+ @RequestMapping(path = "/wechat/{appId}/{paymentPoolId}", method = RequestMethod.POST)
+ public ResponseEntity<String> notify(@RequestBody String postInfo, @PathVariable String appId,
+ @PathVariable String paymentPoolId,HttpServletRequest request) {
logger.debug("寰俊鏀粯鍥炶皟鎶ユ枃" + postInfo);
- return notifyPaymentV1InnerServiceSMOImpl.notifyPayment(new NotifyPaymentOrderDto(appId,postInfo,communityId));
+ return notifyPaymentV1InnerServiceSMOImpl.notifyPayment(new NotifyPaymentOrderDto(appId,postInfo,"",paymentPoolId));
}
@@ -40,12 +41,12 @@
* @param request
* @throws Exception
*/
- @RequestMapping(path = "/nativeWechat/{appId}/{communityId}", method = RequestMethod.POST)
- public ResponseEntity<String> nativeNotify(@RequestBody String postInfo, @PathVariable String appId,@PathVariable String communityId, HttpServletRequest request) {
+ @RequestMapping(path = "/nativeWechat/{appId}/{paymentPoolId}", method = RequestMethod.POST)
+ public ResponseEntity<String> nativeNotify(@RequestBody String postInfo, @PathVariable String appId,@PathVariable String paymentPoolId, HttpServletRequest request) {
logger.debug("寰俊鏀粯鍥炶皟鎶ユ枃" + postInfo);
- return notifyPaymentV1InnerServiceSMOImpl.nativeNotifyPayment(new NotifyPaymentOrderDto(appId,postInfo,communityId));
+ return notifyPaymentV1InnerServiceSMOImpl.nativeNotifyPayment(new NotifyPaymentOrderDto(appId,postInfo,"",paymentPoolId));
}
}
--
Gitblit v1.8.0