|
@@ -91,16 +91,7 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
|
map.put(SystemConstant.RECORD_ID, recordId);
|
|
|
map.put(SystemConstant.MESSAGE, FinishTypeEnum.valueOf(String.valueOf(mqDto.getProperties().get(SystemConstant.TYPE))).getCode());
|
|
|
|
|
|
- String ip = ExamRecordCacheUtil.getClientCurrentIp(recordId), country = null, region = null, province = null, city = null, isp = null;
|
|
|
- String[] strs = SystemConstant.getIpInfo(ip);
|
|
|
- if (Objects.nonNull(strs) && strs.length > 0) {
|
|
|
- country = strs[0];
|
|
|
- region = strs[1];
|
|
|
- province = strs[2];
|
|
|
- city = strs[3];
|
|
|
- isp = strs[4];
|
|
|
- }
|
|
|
- TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), "监考老师[" + mqDto.getObjName() + "]强制离线(交卷)", mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode(), ip, country, region, province, city, isp);
|
|
|
+ TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), "监考老师[" + mqDto.getObjName() + "]强制离线(交卷)", mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode(), null, null, null, null, null, null);
|
|
|
teExamStudentLogService.save(teExamStudentLog);
|
|
|
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
@@ -142,16 +133,7 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
|
map.put(SystemConstant.RECORD_ID, recordId);
|
|
|
map.put(SystemConstant.BREACH_STATUS, FinishTypeEnum.valueOf(String.valueOf(mqDto.getProperties().get(SystemConstant.TYPE))).getCode());
|
|
|
|
|
|
- String ip = ExamRecordCacheUtil.getClientCurrentIp(recordId), country = null, region = null, province = null, city = null, isp = null;
|
|
|
- String[] strs = SystemConstant.getIpInfo(ip);
|
|
|
- if (Objects.nonNull(strs) && strs.length > 0) {
|
|
|
- country = strs[0];
|
|
|
- region = strs[1];
|
|
|
- province = strs[2];
|
|
|
- city = strs[3];
|
|
|
- isp = strs[4];
|
|
|
- }
|
|
|
- TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), mqDto.getType().getCode(), mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode(), ip, country, region, province, city, isp);
|
|
|
+ TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), mqDto.getType().getCode(), mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode(), null, null, null, null, null, null);
|
|
|
teExamStudentLogService.save(teExamStudentLog);
|
|
|
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
@@ -233,16 +215,7 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
|
map.put(SystemConstant.RECORD_ID, recordId);
|
|
|
map.put(SystemConstant.WEB_SOCKET_OE_SERVER, webSocketOeServer);
|
|
|
|
|
|
- String ip = ExamRecordCacheUtil.getClientCurrentIp(recordId), country = null, region = null, province = null, city = null, isp = null;
|
|
|
- String[] strs = SystemConstant.getIpInfo(ip);
|
|
|
- if (Objects.nonNull(strs) && strs.length > 0) {
|
|
|
- country = strs[0];
|
|
|
- region = strs[1];
|
|
|
- province = strs[2];
|
|
|
- city = strs[3];
|
|
|
- isp = strs[4];
|
|
|
- }
|
|
|
- TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), mqDto.getType().getCode(), mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode(), ip, country, region, province, city, isp);
|
|
|
+ TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), mqDto.getType().getCode(), mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode(), null, null, null, null, null, null);
|
|
|
teExamStudentLogService.save(teExamStudentLog);
|
|
|
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|