|
@@ -279,7 +279,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
public void execMqWebsocketUnNormalLogic(MqDto mqDto, String key) throws NoSuchAlgorithmException {
|
|
|
Gson gson = new Gson();
|
|
|
Map<String, Object> tranMap = mqDto.getProperties();
|
|
|
- Long recordId = Long.parseLong(String.valueOf(tranMap.get("recordId")));
|
|
|
+ Long recordId = Long.parseLong(String.valueOf(tranMap.get(SystemConstant.RECORD_ID)));
|
|
|
ExamRecordStatusEnum status = ExamRecordCacheUtil.getStatus(recordId);
|
|
|
WebsocketStatusEnum websocketStatusEnum = ExamRecordCacheUtil.getClientWebsocketStatus(recordId);
|
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
@@ -328,7 +328,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
public void execMqTencentVideoLogic(MqDto mqDto, String key) throws NoSuchAlgorithmException, IOException {
|
|
|
Gson gson = new Gson();
|
|
|
Map<String, Object> tranMap = mqDto.getProperties();
|
|
|
- Long recordId = Long.parseLong(String.valueOf(tranMap.get("recordId")));
|
|
|
+ Long recordId = Long.parseLong(String.valueOf(tranMap.get(SystemConstant.RECORD_ID)));
|
|
|
TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(recordId);
|
|
|
List<String> monitorRecordList = Arrays.asList(tOeExamRecord.getMonitorRecord().trim().toUpperCase().split(","));
|
|
|
String[] streamIds = new String[monitorRecordList.size()];
|
|
@@ -421,7 +421,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
Gson gson = new Gson();
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
Long id = (Long) param.get("id");
|
|
|
- Long recordId = (Long) param.get("recordId");
|
|
|
+ Long recordId = (Long) param.get(SystemConstant.RECORD_ID);
|
|
|
String type = (String) param.get("type");
|
|
|
String photoUrl = (String) param.get("photoUrl");
|
|
|
Integer faceCount = (Integer) param.get("faceCount");
|
|
@@ -578,7 +578,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
Gson gson = new Gson();
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
Long id = (Long) param.get("id");
|
|
|
- Long recordId = (Long) param.get("recordId");
|
|
|
+ Long recordId = (Long) param.get(SystemConstant.RECORD_ID);
|
|
|
String type = (String) param.get("type");
|
|
|
String actions = (String) param.get("actions");
|
|
|
Integer retry = (Integer) param.get("retry");
|
|
@@ -716,7 +716,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
public void execMqRecordPersistedLogic(MqDto mqDto, String key) {
|
|
|
Gson gson = new Gson();
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
- Long recordId = (Long) param.get("recordId");
|
|
|
+ Long recordId = (Long) param.get(SystemConstant.RECORD_ID);
|
|
|
commonService.persisted(recordId);
|
|
|
mqDto.setAck(SystemConstant.STANDARD_ACK_TYPE);
|
|
|
TMRocketMessage tmRocketMessage = gson.fromJson(gson.toJson(mqDto), TMRocketMessage.class);
|
|
@@ -994,7 +994,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
public void execMqExamBreakDelayLogic(MqDto mqDto, String key) {
|
|
|
Gson gson = new Gson();
|
|
|
Map<String, Object> tranMap = mqDto.getProperties();
|
|
|
- Long recordId = Long.parseLong(String.valueOf(tranMap.get("recordId")));
|
|
|
+ Long recordId = Long.parseLong(String.valueOf(tranMap.get(SystemConstant.RECORD_ID)));
|
|
|
ExamRecordStatusEnum statusEnum = ExamRecordCacheUtil.getStatus(recordId);
|
|
|
if (Objects.nonNull(statusEnum) && !Objects.equals(statusEnum, ExamRecordStatusEnum.FINISHED) && !Objects
|
|
|
.equals(statusEnum, ExamRecordStatusEnum.PERSISTED) && !Objects
|