|
@@ -165,6 +165,15 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
String ip = null, country = null, region = null, province = null, city = null, isp = null;
|
|
String ip = null, country = null, region = null, province = null, city = null, isp = null;
|
|
if (Objects.nonNull(mqDto.getProperties())) {
|
|
if (Objects.nonNull(mqDto.getProperties())) {
|
|
Long recordId = Long.parseLong(String.valueOf(mqDto.getProperties().get(SystemConstant.EXAM_RECORD_ID)));
|
|
Long recordId = Long.parseLong(String.valueOf(mqDto.getProperties().get(SystemConstant.EXAM_RECORD_ID)));
|
|
|
|
+ ip = Objects.nonNull(recordId) ? ExamRecordCacheUtil.getClientCurrentIp(recordId) : mqDto.getObjName();
|
|
|
|
+ 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];
|
|
|
|
+ }
|
|
String type = Objects.nonNull(mqDto.getProperties().get(SystemConstant.TYPE)) ?
|
|
String type = Objects.nonNull(mqDto.getProperties().get(SystemConstant.TYPE)) ?
|
|
String.valueOf(mqDto.getProperties().get(SystemConstant.TYPE)) :
|
|
String.valueOf(mqDto.getProperties().get(SystemConstant.TYPE)) :
|
|
SystemOperationEnum.valueOf(String.valueOf(mqDto.getBody())).getCode();
|
|
SystemOperationEnum.valueOf(String.valueOf(mqDto.getBody())).getCode();
|
|
@@ -199,6 +208,12 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
teExamStudentLogService.saveOrUpdateBatch(teExamStudentLogList);
|
|
teExamStudentLogService.saveOrUpdateBatch(teExamStudentLogList);
|
|
}
|
|
}
|
|
title = jsonObject.toJSONString();
|
|
title = jsonObject.toJSONString();
|
|
|
|
+ ip = null;
|
|
|
|
+ country = null;
|
|
|
|
+ region = null;
|
|
|
|
+ province = null;
|
|
|
|
+ city = null;
|
|
|
|
+ isp = null;
|
|
}
|
|
}
|
|
teExamStudentLog = new TEExamStudentLog(String.valueOf(mqDto.getBody()), info, remark,
|
|
teExamStudentLog = new TEExamStudentLog(String.valueOf(mqDto.getBody()), info, remark,
|
|
Long.parseLong(String.valueOf(mqDto.getObjId())),
|
|
Long.parseLong(String.valueOf(mqDto.getObjId())),
|