Commit ba3c4ac7 by 叶立庆

[+] 离线卡数据同步应

1 parent eb85259d
......@@ -237,7 +237,7 @@ public class Ocpp16Helper {
ListIterator listIterator = ((List<?>) v).listIterator();
while(listIterator.hasNext()){
Object iv = listIterator.next();
byte[] bs = build(v);
byte[] bs = build(iv);
byteBuf.writeBytes(bs);
}
......
......@@ -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.Task;
import cn.com.glsx.charging.util.TaskExecutor;
import com.alibaba.fastjson.JSON;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
......@@ -119,6 +120,7 @@ public class TcpServer {
@SuppressWarnings({"rawtypes"})
public <T extends TcpBase> TcpCallback<TcpRsp> sendSync(T data) {
log.info("data:{}", JSON.toJSONString(data));
ProxyInfo proxyInfo = ProxyHelper.getProxyInfo(data.getData().getPileIdStr());
String ip = proxyInfo.getIp();
// seq字段处理
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!