Browse Source

add 添加子设备消息类型

18339543638 4 years ago
parent
commit
c82b5ec59a

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

@@ -70,7 +70,7 @@ public class DeviceDirectiveSendInterceptor implements DeviceMessageSenderInterc
                         .set(DeviceDirectivesEntity::getLastError,null)
                         .execute())
                 .onErrorResume(DeviceOperationException.class,e->deviceDirectivesService.createUpdate()
-                    .where(DeviceDirectivesEntity::getDeviceId,message.getDeviceId())
+//                    .where(DeviceDirectivesEntity::getDeviceId,message.getDeviceId())
                     .where(DeviceDirectivesEntity::getMessageId,message.getMessageId())
                     .set(DeviceDirectivesEntity::getLastError,e.getMessage())
                     .set(DeviceDirectivesEntity::getState,DirectiveState.sendError)