wangming 3 nedēļas atpakaļ
vecāks
revīzija
7b9eb3f3b9

+ 3 - 3
yami-shop-api/src/main/java/com/yami/shop/api/controller/PayController.java

@@ -44,7 +44,7 @@ public class PayController {
     private final OrderService orderService;
     private final RefundDeliveryService refundDeliveryService;
     private final WxProviderService wxProviderService;
-    private final String notifyUrl="http://he56cd66.natappfree.cc";
+    private final String baseNotifyUrl ="http://he56cd66.natappfree.cc";
 
 
     @SneakyThrows
@@ -103,7 +103,7 @@ public class PayController {
         po.setTotal(1);
         po.setOpenId(user.getBizUserId());
         po.setOutTradeNo(payInfo.getPayNo());
-        po.setNotifyUrl(getNotifyUrl(notifyUrl));
+        po.setNotifyUrl(getNotifyUrl(baseNotifyUrl));
         return ResponseEntity.ok(wxProviderService.subJsapi(po));
     }
 
@@ -121,7 +121,7 @@ public class PayController {
         po.setTotal((int) Arith.mul(refundDelivery.getPrice(), 100));
         po.setOpenId(SecurityUtils.getUser().getBizUserId());
         po.setOutTradeNo("refundSn" + payParam.getOrderNumbers());
-        po.setNotifyUrl(getNotifyUrl(notifyUrl));
+        po.setNotifyUrl(getNotifyUrl(baseNotifyUrl));
         return ResponseEntity.ok(wxProviderService.subJsapi(po));
     }