xiongzhu 3 years ago
parent
commit
977fc04d9f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/main/java/com/izouma/nineth/web/OrderNotifyController.java

+ 7 - 0
src/main/java/com/izouma/nineth/web/OrderNotifyController.java

@@ -193,6 +193,13 @@ public class OrderNotifyController {
         }
     }
 
+    @PostMapping("/adapay/ordertest/{orderId}")
+    @ResponseBody
+    public void adapayNotifyTest(@PathVariable Long orderId, @RequestParam String transactionId) throws Exception {
+        rocketMQTemplate.syncSend(generalProperties.getOrderNotifyTopic(),
+                new OrderNotifyEvent(orderId, PayMethod.ALIPAY, transactionId, System.currentTimeMillis()));
+    }
+
     @PostMapping("/adapay/giftOrder/{orderId}")
     @ResponseBody
     public void adapayGiftNotify(@PathVariable Long orderId, HttpServletRequest request) {