From f853ea4f62386aa3a75f39221d5bec14a39cdab1 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Mon, 10 Feb 2025 11:12:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=8D=95=E6=97=B6=E7=94=A8=E5=B8=81?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=97=B6=EF=BC=8C=E4=BD=99=E9=A2=9D=E4=B8=8D?= =?UTF-8?q?=E8=B6=B3=E6=97=B6=E8=AE=A2=E5=8D=95=E5=8A=A0=E5=85=A5=E9=98=9F?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peanut/modules/book/controller/BuyOrderController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/peanut/modules/book/controller/BuyOrderController.java b/src/main/java/com/peanut/modules/book/controller/BuyOrderController.java index cbdabbe9..5be41a32 100644 --- a/src/main/java/com/peanut/modules/book/controller/BuyOrderController.java +++ b/src/main/java/com/peanut/modules/book/controller/BuyOrderController.java @@ -338,6 +338,12 @@ public class BuyOrderController { //发放优惠卷 couponService.insertCouponHistoryByProductId(buyOrder); } else { + rabbitTemplate.convertAndSend( + DelayQueueConfig.ORDER_TO_BE_PAY_EXCHANGE, + DelayQueueConfig.ORDER_TO_BE_PAY_ROUTING_KEY, + buyOrder.getOrderId(), + messagePostProcessor() + ); return R.error(500, "天医币余额不足!"); } }