Commit f61a2ca3 by 谢海旭

fix

1 parent 67f68c85
...@@ -45,7 +45,7 @@ public class HeartbeatReqHandler implements TcpHandler<HeartbeatReq, HeartbeatRs ...@@ -45,7 +45,7 @@ public class HeartbeatReqHandler implements TcpHandler<HeartbeatReq, HeartbeatRs
log.info("充电桩心跳包 推送mq参数:{}", mqData); log.info("充电桩心跳包 推送mq参数:{}", mqData);
MsgProducer producer = SpringContextUtil.getApplicationContext().getBean(MsgProducer.class); MsgProducer producer = SpringContextUtil.getApplicationContext().getBean(MsgProducer.class);
producer.topicSend(RabbitMQConstants.ROUTING_KEY_ADMIN_SWIPE_CONFIRM_REQ,mqData); producer.topicSend(RabbitMQConstants.ROUTING_KEY_HEART_BEAT_REQ,mqData);
} }
} }
...@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.rabbitmq; ...@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.rabbitmq;
public interface RabbitMQConstants { public interface RabbitMQConstants {
String TOPIC_EXCHANGE_PLATFORM_CHARGING = "platform-charging"; String TOPIC_EXCHANGE_PLATFORM_CHARGING = "platform-charging";
/** /**
* 充电桩主动申请启动充电 * 充电桩主动申请启动充电
*/ */
...@@ -18,5 +19,9 @@ public interface RabbitMQConstants { ...@@ -18,5 +19,9 @@ public interface RabbitMQConstants {
* 交易记录 * 交易记录
*/ */
String ROUTING_KEY_TRANSACTION_RECORDS_REQ = "transaction_records.req"; String ROUTING_KEY_TRANSACTION_RECORDS_REQ = "transaction_records.req";
/**
* 充电桩心跳包
*/
String ROUTING_KEY_HEART_BEAT_REQ = "heart_beat.req";
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!