mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -179,8 +179,8 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
|
||||
log.error("Client-IP:【{}】, channelId:【{}】, pileSn:【{}】, ALL_IDLE 总超时", socketString, channelId, pileSn);
|
||||
}
|
||||
if (flag) {
|
||||
ctx.channel().close();
|
||||
close(channelId, pileSn);
|
||||
// ctx.channel().close();
|
||||
// close(channelId, pileSn);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -203,7 +203,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
|
||||
log.error("【{}】发生了错误, pileSn:【{}】此连接被关闭, 此时连通数量: {}", channelId, pileSn, CHANNEL_MAP.size());
|
||||
ctx.channel().close();
|
||||
}
|
||||
close(channelId, pileSn);
|
||||
// close(channelId, pileSn);
|
||||
}
|
||||
|
||||
private void close(ChannelId channelId, String pileSn) {
|
||||
|
||||
@@ -580,8 +580,6 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
||||
deleteRedisByPileSn(pileSn);
|
||||
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_3m);
|
||||
|
||||
// TODO 推送联联平台 设备状态变化推送接口 ConnectorStatusInfo
|
||||
|
||||
// 异步放缓存
|
||||
CompletableFuture.runAsync(() -> statusChange(pileConnectorCode));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user