|
@@ -535,7 +535,7 @@ public class ExamRecordCacheUtil {
|
|
|
if (Objects.nonNull(getId(recordId)) && (Objects.nonNull(ip) && !Objects.equals(ip.trim(), "") && !Objects.equals(ip.trim(), "0:0:0:0:0:0:0:1") && !Objects.equals(ip.trim(), "127.0.0.1")
|
|
|
&& !Objects.equals(ip.trim(), "localhost"))) {
|
|
|
String historyIp = getClientCurrentIp(recordId);
|
|
|
- if (Objects.nonNull(historyIp) && !Objects.equals(historyIp.trim(), "") && !Objects.equals(historyIp, ip)) {
|
|
|
+ if (Objects.nonNull(historyIp) && !Objects.equals(historyIp.trim(), "") && !Objects.equals(historyIp.trim(), ip.trim())) {
|
|
|
Long examId = getExamId(recordId);
|
|
|
Long examActivityId = getExamActivityId(recordId);
|
|
|
Long examStudentId = getExamStudentId(recordId);
|
|
@@ -545,7 +545,7 @@ public class ExamRecordCacheUtil {
|
|
|
tIeInvigilateWarnInfoService.saveOrUpdate(tIeInvigilateWarnInfo);
|
|
|
}
|
|
|
redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), ExamRecordFieldEnum.client_current_ip.getCode(),
|
|
|
- ip);
|
|
|
+ ip.trim());
|
|
|
}
|
|
|
}
|
|
|
|