|
@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.util.Collections;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
@@ -96,9 +97,7 @@ public class TIeInvigilateCallMobileController {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- Map map = new HashMap();
|
|
|
|
- map.put("updateTime", System.currentTimeMillis());
|
|
|
|
- return ResultUtil.ok(map);
|
|
|
|
|
|
+ return ResultUtil.ok(Collections.singletonMap("updateTime", System.currentTimeMillis()));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "发送通话申请接口")
|
|
@ApiOperation(value = "发送通话申请接口")
|
|
@@ -131,9 +130,7 @@ public class TIeInvigilateCallMobileController {
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
//监考监控通话信息 发送mq end
|
|
//监考监控通话信息 发送mq end
|
|
- Map map = new HashMap();
|
|
|
|
- map.put("updateTime", System.currentTimeMillis());
|
|
|
|
- return ResultUtil.ok(map);
|
|
|
|
|
|
+ return ResultUtil.ok(Collections.singletonMap("updateTime", System.currentTimeMillis()));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "监控状态更新接口")
|
|
@ApiOperation(value = "监控状态更新接口")
|
|
@@ -164,10 +161,8 @@ public class TIeInvigilateCallMobileController {
|
|
//获取考试记录缓存
|
|
//获取考试记录缓存
|
|
Map<String, Object> objectMap = redisUtil.getHashEntries(RedisKeyHelper.examRecordCacheKey(recordId));
|
|
Map<String, Object> objectMap = redisUtil.getHashEntries(RedisKeyHelper.examRecordCacheKey(recordId));
|
|
String liveUrl = null;
|
|
String liveUrl = null;
|
|
- if (Objects.nonNull(objectMap.get(SystemConstant.MONITOR_LIVE_URL_ + MonitorVideoSourceEnum.MOBILE_FIRST.name()))) {
|
|
|
|
- liveUrl = String.valueOf(objectMap.get(SystemConstant.MONITOR_LIVE_URL_ + MonitorVideoSourceEnum.MOBILE_FIRST.name()));
|
|
|
|
- } else if (Objects.nonNull(objectMap.get(SystemConstant.MONITOR_LIVE_URL_ + MonitorVideoSourceEnum.MOBILE_SECOND.name()))) {
|
|
|
|
- liveUrl = String.valueOf(objectMap.get(SystemConstant.MONITOR_LIVE_URL_ + MonitorVideoSourceEnum.MOBILE_SECOND.name()));
|
|
|
|
|
|
+ if (Objects.nonNull(objectMap.get(SystemConstant.MONITOR_LIVE_URL_ + source.name()))) {
|
|
|
|
+ liveUrl = String.valueOf(objectMap.get(SystemConstant.MONITOR_LIVE_URL_ + source.name()));
|
|
}
|
|
}
|
|
objectMap.put(SystemConstant.MONITOR_STATUS_ + source.name(), status);
|
|
objectMap.put(SystemConstant.MONITOR_STATUS_ + source.name(), status);
|
|
TIeExamInvigilateCallLog tIeExamInvigilateCallLog = new TIeExamInvigilateCallLog(recordId, source, liveUrl, MonitorStatusSourceEnum.START);
|
|
TIeExamInvigilateCallLog tIeExamInvigilateCallLog = new TIeExamInvigilateCallLog(recordId, source, liveUrl, MonitorStatusSourceEnum.START);
|
|
@@ -232,8 +227,6 @@ public class TIeInvigilateCallMobileController {
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
//监考监控通话信息 发送mq end
|
|
//监考监控通话信息 发送mq end
|
|
- Map map = new HashMap();
|
|
|
|
- map.put("updateTime", System.currentTimeMillis());
|
|
|
|
- return ResultUtil.ok(map);
|
|
|
|
|
|
+ return ResultUtil.ok(Collections.singletonMap("updateTime", System.currentTimeMillis()));
|
|
}
|
|
}
|
|
}
|
|
}
|