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 896a4e6c
authored
Nov 10, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码调整
1 parent
4cc95593
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/handler/ShutdownMachineRespHandler.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/handler/StartMachineRespHandler.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/handler/ShutdownMachineRespHandler.java
View file @
896a4e6
...
...
@@ -27,13 +27,7 @@ public class ShutdownMachineRespHandler implements TcpHandler<ShutdownMachineRes
log
.
info
(
"枪号:{}"
,
data
.
getGunNumber
());
log
.
info
(
"停止结果:{}"
,
data
.
getShutdownResult
());
log
.
info
(
"失败原因:{}"
,
data
.
getFailureReason
());
String
key
=
ProxyHelper
.
setCallback
(
shutdownMachineResp
,
channel
);
TcpCallback
<
TcpRsp
>
callback
=
ProxyHelper
.
getCallback
(
key
);
if
(
Objects
.
nonNull
(
callback
))
{
callback
.
callback
(
shutdownMachineResp
);
}
else
{
log
.
info
(
"callback为空===StartMachineRespHandler"
);
}
ProxyHelper
.
setCallback
(
channel
,
shutdownMachineResp
);
return
null
;
}
}
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/handler/StartMachineRespHandler.java
View file @
896a4e6
...
...
@@ -31,13 +31,7 @@ public class StartMachineRespHandler implements TcpHandler<StartMachineResp, Sta
data
.
setGunNumber
((
byte
)
1
);
data
.
setFailureReason
((
byte
)
0
);
resp
.
setData
(
data
);
String
key
=
ProxyHelper
.
setCallback
(
startMachineResp
,
channel
);
TcpCallback
<
TcpRsp
>
callback
=
ProxyHelper
.
getCallback
(
key
);
if
(
Objects
.
nonNull
(
callback
))
{
callback
.
callback
(
startMachineResp
);
}
else
{
log
.
info
(
"callback为空===StartMachineRespHandler"
);
}
ProxyHelper
.
setCallback
(
channel
,
startMachineResp
);
return
null
;
}
}
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