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 ba3c4ac7
authored
Nov 10, 2023
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+] 离线卡数据同步应
1 parent
eb85259d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/Ocpp16Helper.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/server/TcpServer.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/Ocpp16Helper.java
View file @
ba3c4ac
...
@@ -237,7 +237,7 @@ public class Ocpp16Helper {
...
@@ -237,7 +237,7 @@ public class Ocpp16Helper {
ListIterator
listIterator
=
((
List
<?>)
v
).
listIterator
();
ListIterator
listIterator
=
((
List
<?>)
v
).
listIterator
();
while
(
listIterator
.
hasNext
()){
while
(
listIterator
.
hasNext
()){
Object
iv
=
listIterator
.
next
();
Object
iv
=
listIterator
.
next
();
byte
[]
bs
=
build
(
v
);
byte
[]
bs
=
build
(
i
v
);
byteBuf
.
writeBytes
(
bs
);
byteBuf
.
writeBytes
(
bs
);
}
}
...
...
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/tcp/server/TcpServer.java
View file @
ba3c4ac
...
@@ -10,6 +10,7 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpRsp;
...
@@ -10,6 +10,7 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpRsp;
import
cn.com.glsx.charging.util.ByteUtils
;
import
cn.com.glsx.charging.util.ByteUtils
;
import
cn.com.glsx.charging.util.Task
;
import
cn.com.glsx.charging.util.Task
;
import
cn.com.glsx.charging.util.TaskExecutor
;
import
cn.com.glsx.charging.util.TaskExecutor
;
import
com.alibaba.fastjson.JSON
;
import
io.netty.bootstrap.ServerBootstrap
;
import
io.netty.bootstrap.ServerBootstrap
;
import
io.netty.channel.Channel
;
import
io.netty.channel.Channel
;
import
io.netty.channel.ChannelFuture
;
import
io.netty.channel.ChannelFuture
;
...
@@ -119,6 +120,7 @@ public class TcpServer {
...
@@ -119,6 +120,7 @@ public class TcpServer {
@SuppressWarnings
({
"rawtypes"
})
@SuppressWarnings
({
"rawtypes"
})
public
<
T
extends
TcpBase
>
TcpCallback
<
TcpRsp
>
sendSync
(
T
data
)
{
public
<
T
extends
TcpBase
>
TcpCallback
<
TcpRsp
>
sendSync
(
T
data
)
{
log
.
info
(
"data:{}"
,
JSON
.
toJSONString
(
data
));
ProxyInfo
proxyInfo
=
ProxyHelper
.
getProxyInfo
(
data
.
getData
().
getPileIdStr
());
ProxyInfo
proxyInfo
=
ProxyHelper
.
getProxyInfo
(
data
.
getData
().
getPileIdStr
());
String
ip
=
proxyInfo
.
getIp
();
String
ip
=
proxyInfo
.
getIp
();
// seq字段处理
// seq字段处理
...
...
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