Преглед изворни кода

add 添加子设备消息类型

18339543638 пре 4 година
родитељ
комит
a6abfc1e9e

+ 1 - 0
jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/interceptor/DeviceDirectiveSendInterceptor.java

@@ -73,6 +73,7 @@ public class DeviceDirectiveSendInterceptor implements DeviceMessageSenderInterc
 //                    .where(DeviceDirectivesEntity::getDeviceId,message.getDeviceId())
                     .where(DeviceDirectivesEntity::getMessageId,message.getMessageId())
                     .set(DeviceDirectivesEntity::getLastError,e.getMessage())
+                    .set(DeviceDirectivesEntity::getDownstream,message)
                     .set(DeviceDirectivesEntity::getState,DirectiveState.sendError)
                     .execute())
                 .thenMany(reply);