Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f61a2ca3
authored
Nov 16, 2023
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
67f68c85
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/handler/HeartbeatReqHandler.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/rabbitmq/RabbitMQConstants.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/handler/HeartbeatReqHandler.java
View file @
f61a2ca
...
...
@@ -45,7 +45,7 @@ public class HeartbeatReqHandler implements TcpHandler<HeartbeatReq, HeartbeatRs
log
.
info
(
"充电桩心跳包 推送mq参数:{}"
,
mqData
);
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
);
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/rabbitmq/RabbitMQConstants.java
View file @
f61a2ca
...
...
@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.rabbitmq;
public
interface
RabbitMQConstants
{
String
TOPIC_EXCHANGE_PLATFORM_CHARGING
=
"platform-charging"
;
/**
* 充电桩主动申请启动充电
*/
...
...
@@ -18,5 +19,9 @@ public interface RabbitMQConstants {
* 交易记录
*/
String
ROUTING_KEY_TRANSACTION_RECORDS_REQ
=
"transaction_records.req"
;
/**
* 充电桩心跳包
*/
String
ROUTING_KEY_HEART_BEAT_REQ
=
"heart_beat.req"
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment