主子码修改提交不生效问题

This commit is contained in:
shangxingyu 2024-02-03 11:21:02 +08:00
parent 7df31fa5eb
commit acdef18cba

View File

@ -508,6 +508,7 @@ public class DeviceServiceImpl implements IDeviceService {
} }
deviceChannelMapper.clearPlay(device.getDeviceId()); deviceChannelMapper.clearPlay(device.getDeviceId());
inviteStreamService.clearInviteInfo(device.getDeviceId()); inviteStreamService.clearInviteInfo(device.getDeviceId());
deviceInStore.setSwitchPrimarySubStream(device.isSwitchPrimarySubStream());
} }
if (!ObjectUtils.isEmpty(device.getName())) { if (!ObjectUtils.isEmpty(device.getName())) {
@ -597,6 +598,7 @@ public class DeviceServiceImpl implements IDeviceService {
} }
deviceChannelMapper.cleanChannelsByDeviceId(deviceId); deviceChannelMapper.cleanChannelsByDeviceId(deviceId);
deviceMapper.del(deviceId); deviceMapper.del(deviceId);
redisCatchStorage.removeDevice(deviceId);
return true; return true;
} }