|
@@ -894,7 +894,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
Boolean totalLimit = getExamLimitProperty(examId, ipTotalLimit.getId(), false);
|
|
|
if (totalLimit) {
|
|
|
//在白名单中
|
|
|
- int count = examIpLimitRepo.countByExamIdAndLimitTypeAndIp(examId, IpLimitType.HAS_ACCESS.getId(),realIp);
|
|
|
+ int count = examIpLimitRepo.countByExamIdAndLimitTypeAndIp(examId, IpLimitType.HAS_ACCESS,realIp);
|
|
|
if (count>0) {
|
|
|
//学习中心访问控制
|
|
|
Boolean centerLimit = getExamLimitProperty(examId,ipCenterLimit.getId(), false);
|
|
@@ -927,7 +927,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
}
|
|
|
} else {
|
|
|
//不在黑名单中
|
|
|
- int count = examIpLimitRepo.countByExamIdAndLimitTypeAndIp(examId,IpLimitType.NO_ACCESS.getId(), realIp);
|
|
|
+ int count = examIpLimitRepo.countByExamIdAndLimitTypeAndIp(examId,IpLimitType.NO_ACCESS, realIp);
|
|
|
return count > 0;
|
|
|
}
|
|
|
return true;
|