From 5497beff58f56e7b5457e2fca0ad505eee98be7c Mon Sep 17 00:00:00 2001 From: zhouhao Date: Mon, 7 Jul 2025 19:08:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AD=90?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jetlinks/community/gateway/DeviceGatewayHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jetlinks-components/gateway-component/src/main/java/org/jetlinks/community/gateway/DeviceGatewayHelper.java b/jetlinks-components/gateway-component/src/main/java/org/jetlinks/community/gateway/DeviceGatewayHelper.java index 7e12dbb3..c72e747e 100755 --- a/jetlinks-components/gateway-component/src/main/java/org/jetlinks/community/gateway/DeviceGatewayHelper.java +++ b/jetlinks-components/gateway-component/src/main/java/org/jetlinks/community/gateway/DeviceGatewayHelper.java @@ -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)); //子设备注册