完成向上级联->点播--增加了sdp解析

修复修改平台主键带来的bug
This commit is contained in:
panlinlin
2021-01-15 17:21:02 +08:00
parent cf8a22f50b
commit 503f891c9e
21 changed files with 976 additions and 81 deletions

View File

@@ -110,7 +110,7 @@ public class PlatformController {
if (logger.isDebugEnabled()) {
logger.debug("查询所有上级设备API调用");
}
if (StringUtils.isEmpty(parentPlatform.getDeviceGBId())
if (StringUtils.isEmpty(parentPlatform.getServerGBId())
){
return new ResponseEntity<>("missing parameters", HttpStatus.BAD_REQUEST);
}
@@ -118,14 +118,14 @@ public class PlatformController {
// 发送离线消息,无论是否成功都删除缓存
commanderForPlatform.unregister(parentPlatform, (event -> {
// 清空redis缓存
redisCatchStorage.delPlatformCatchInfo(parentPlatform.getDeviceGBId());
redisCatchStorage.delPlatformKeepalive(parentPlatform.getDeviceGBId());
redisCatchStorage.delPlatformRegister(parentPlatform.getDeviceGBId());
redisCatchStorage.delPlatformCatchInfo(parentPlatform.getServerGBId());
redisCatchStorage.delPlatformKeepalive(parentPlatform.getServerGBId());
redisCatchStorage.delPlatformRegister(parentPlatform.getServerGBId());
}), (event -> {
// 清空redis缓存
redisCatchStorage.delPlatformCatchInfo(parentPlatform.getDeviceGBId());
redisCatchStorage.delPlatformKeepalive(parentPlatform.getDeviceGBId());
redisCatchStorage.delPlatformRegister(parentPlatform.getDeviceGBId());
redisCatchStorage.delPlatformCatchInfo(parentPlatform.getServerGBId());
redisCatchStorage.delPlatformKeepalive(parentPlatform.getServerGBId());
redisCatchStorage.delPlatformRegister(parentPlatform.getServerGBId());
}));
boolean deleteResult = storager.deleteParentPlatform(parentPlatform);