|
|
@ -15,7 +15,7 @@ import java.io.IOException;
|
|
|
|
@Component
|
|
|
|
@Component
|
|
|
|
public class UserPointsListener {
|
|
|
|
public class UserPointsListener {
|
|
|
|
|
|
|
|
|
|
|
|
@RabbitListener(queues = {RabbitMQConfig.COUPON_QUEUE})
|
|
|
|
@RabbitListener(queues = {RabbitMQConfig.USER_POINTS_QUEUE})
|
|
|
|
public void consume(String msg, Channel channel, Message message) throws InterruptedException, IOException {
|
|
|
|
public void consume(String msg, Channel channel, Message message) throws InterruptedException, IOException {
|
|
|
|
// 预扣除用户积分
|
|
|
|
// 预扣除用户积分
|
|
|
|
Thread.sleep(400);
|
|
|
|
Thread.sleep(400);
|
|
|
|