添加级联平台自动注册时失败自动重新注册

This commit is contained in:
panlinlin
2021-04-27 15:35:22 +08:00
parent 39078225f1
commit bf8fb0c51f
4 changed files with 34 additions and 11 deletions

View File

@@ -119,7 +119,7 @@ public class PlatformController {
// 保存时启用就发送注册
if (parentPlatform.isEnable()) {
// 只要保存就发送注册
commanderForPlatform.register(parentPlatform);
commanderForPlatform.register(parentPlatform, null, null);
} else if (parentPlatformOld != null && parentPlatformOld.isEnable() && !parentPlatform.isEnable()){ // 关闭启用时注销
commanderForPlatform.unregister(parentPlatform, null, null);
}