下单时用币支付时,余额不足时订单加入队列
This commit is contained in:
@@ -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, "天医币余额不足!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user