| | |
| | | _deviceService.updateWorkType(device.getDeviceSn(), 3L); |
| | | RedisOpsUtils.setWithExpire(RedisConst.OSD_STATUS_PREFIX + device.getDeviceSn(), 3, RedisConst.DEVICE_ALIVE_SECOND); |
| | | RedisOpsUtils.del(RedisConst.WEBSOCKET_VIDEO_ADDRESS_PREFIX + device.getDeviceSn()); |
| | | RedisOpsUtils.del(RedisConst.COVER_STATE_PREFIX + device.getDeviceSn()); |
| | | } |
| | | if(!_deviceService.checkDeviceOnline(device.getChildDeviceSn())){ |
| | | _deviceService.updateWorkType(device.getChildDeviceSn(), 6L); |
| | | RedisOpsUtils.del(RedisConst.WEBSOCKET_VIDEO_ADDRESS_PREFIX + device.getChildDeviceSn()); |
| | | RedisOpsUtils.del(RedisConst.COVER_STATE_PREFIX + device.getDeviceSn()); |
| | | } |
| | | } |
| | | } |