Commit 1717fce9 by 林永健

修改bug

1 parent d2e599f7
...@@ -72,6 +72,16 @@ public class RabbitMQConfig { ...@@ -72,6 +72,16 @@ public class RabbitMQConfig {
} }
@Bean @Bean
public Queue transactionQueue() {
return new Queue(QUEUE_TRANSACTION_RECORDS, true);
}
@Bean
public Queue adminSwipeQueue() {
return new Queue(QUEUE_ADMIN_SWIPE_CONFIRM, true);
}
@Bean
public Binding bindinglogin(@Qualifier("loginQueue") Queue queue, public Binding bindinglogin(@Qualifier("loginQueue") Queue queue,
@Qualifier("platformChargingTopicExchange") TopicExchange exchange) { @Qualifier("platformChargingTopicExchange") TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY_LOGIN_REQ); return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY_LOGIN_REQ);
...@@ -89,6 +99,18 @@ public class RabbitMQConfig { ...@@ -89,6 +99,18 @@ public class RabbitMQConfig {
return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY_HEART_BEAT_REQ); return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY_HEART_BEAT_REQ);
} }
@Bean
public Binding bindingTransaction(@Qualifier("transactionQueue") Queue queue,
@Qualifier("platformChargingTopicExchange") TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY_HEART_BEAT_REQ);
}
@Bean
public Binding bindingAdminSwipe(@Qualifier("adminSwipeQueue") Queue queue,
@Qualifier("platformChargingTopicExchange") TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY_HEART_BEAT_REQ);
}
// /** // /**
// * 声明 fanout 队列、交换机、路由绑定 // * 声明 fanout 队列、交换机、路由绑定
// */ // */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!