|
@@ -318,6 +318,20 @@ public class TENotifyController {
|
|
ExamRecordCacheUtil.setMonitorStatus(recordId, MonitorVideoSourceEnum.valueOf(source), monitorStatusSourceEnum, eventTime);
|
|
ExamRecordCacheUtil.setMonitorStatus(recordId, MonitorVideoSourceEnum.valueOf(source), monitorStatusSourceEnum, eventTime);
|
|
MonitorCallStatusSourceEnum callStatus = Objects.nonNull(ExamRecordCacheUtil.getMonitorCallStatus(recordId, MonitorVideoSourceEnum.valueOf(source))) ? ExamRecordCacheUtil.getMonitorCallStatus(recordId, MonitorVideoSourceEnum.valueOf(source)) : null;
|
|
MonitorCallStatusSourceEnum callStatus = Objects.nonNull(ExamRecordCacheUtil.getMonitorCallStatus(recordId, MonitorVideoSourceEnum.valueOf(source))) ? ExamRecordCacheUtil.getMonitorCallStatus(recordId, MonitorVideoSourceEnum.valueOf(source)) : null;
|
|
ExamRecordCacheUtil.setMonitorCallStatus(recordId, MonitorVideoSourceEnum.valueOf(source), callStatus, eventTime);
|
|
ExamRecordCacheUtil.setMonitorCallStatus(recordId, MonitorVideoSourceEnum.valueOf(source), callStatus, eventTime);
|
|
|
|
+
|
|
|
|
+ SysConfig sysConfig = themisCacheService.addSysConfigCache(SystemConstant.MONITOR_CONFIG_PREFIX);
|
|
|
|
+ Optional.ofNullable(sysConfig).orElseThrow(() -> new BusinessException("未配置监控前缀"));
|
|
|
|
+
|
|
|
|
+ String liveUrl = SystemConstant.setStreamId(sysConfig.getConfigValue(), recordId, MonitorVideoSourceEnum.valueOf(source));
|
|
|
|
+ String monitorKey = ExamRecordCacheUtil.getMonitorKey(recordId);
|
|
|
|
+ TIeExamInvigilateCallLog tIeExamInvigilateCallLog = new TIeExamInvigilateCallLog(recordId, MonitorVideoSourceEnum.valueOf(source), liveUrl, MonitorStatusSourceEnum.START, monitorKey, callStatus, null, null);
|
|
|
|
+
|
|
|
|
+ tOeExamRecordService.sendExamRecordDataSaveMqNotIp(recordId, eventTime);
|
|
|
|
+
|
|
|
|
+ //监考监控通话信息 发送mq start
|
|
|
|
+ MqDto mqDto = new MqDto(mqUtil.getTopic(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), MonitorVideoSourceEnum.valueOf(source).name());
|
|
|
|
+ mqDtoService.assembleSendAsyncMsg(mqDto);
|
|
|
|
+ //监考监控通话信息 发送mq end
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|