refactor: 优化子设备会话

This commit is contained in:
zhouhao 2025-07-07 19:08:50 +08:00
parent 99015efd8e
commit 5497beff58
1 changed files with 3 additions and 1 deletions

View File

@ -141,6 +141,7 @@ public class DeviceGatewayHelper {
}
})
.then()
.contextWrite(Context.of(DeviceMessage.class, children))
);
} else {
//子设备上线
@ -172,7 +173,8 @@ public class DeviceGatewayHelper {
childrenSession.replaceWith(parentSession);
}
}
}));
}))
.contextWrite(Context.of(DeviceMessage.class, children));
//子设备注册