From 4ed693f48d1435de7a6333df17c2b34154731429 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期三, 05 七月 2023 22:26:27 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 service-api/src/main/java/com/java110/api/controller/app/payment/wechat/WechatNotifyPaymentController.java |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/service-api/src/main/java/com/java110/api/controller/app/payment/wechat/WechatNotifyPaymentController.java b/service-api/src/main/java/com/java110/api/controller/app/payment/wechat/WechatNotifyPaymentController.java
index 9aacc88..ca6815cc 100644
--- a/service-api/src/main/java/com/java110/api/controller/app/payment/wechat/WechatNotifyPaymentController.java
+++ b/service-api/src/main/java/com/java110/api/controller/app/payment/wechat/WechatNotifyPaymentController.java
@@ -26,12 +26,27 @@
      * @param request
      * @throws Exception
      */
-    @RequestMapping(path = "/wechat/{appId}", method = RequestMethod.POST)
-    public ResponseEntity<String> notify(@RequestBody String postInfo, @PathVariable String appId, HttpServletRequest request) {
+    @RequestMapping(path = "/wechat/{appId}/{communityId}", method = RequestMethod.POST)
+    public ResponseEntity<String> notify(@RequestBody String postInfo, @PathVariable String appId,@PathVariable String communityId, HttpServletRequest request) {
 
         logger.debug("寰俊鏀粯鍥炶皟鎶ユ枃" + postInfo);
 
-        return notifyPaymentV1InnerServiceSMOImpl.notifyPayment(new NotifyPaymentOrderDto(appId,postInfo));
+        return notifyPaymentV1InnerServiceSMOImpl.notifyPayment(new NotifyPaymentOrderDto(appId,postInfo,communityId));
+
+    }
+
+    /**
+     * <p>鏀粯鍥炶皟Api</p>
+     *
+     * @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) {
+
+        logger.debug("寰俊鏀粯鍥炶皟鎶ユ枃" + postInfo);
+
+        return notifyPaymentV1InnerServiceSMOImpl.nativeNotifyPayment(new NotifyPaymentOrderDto(appId,postInfo,communityId));
 
     }
 }

--
Gitblit v1.8.0