|
@@ -36,6 +36,7 @@ import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.helpers.DynamicEnum;
|
|
|
import cn.com.qmth.examcloud.commons.helpers.DynamicEnumManager;
|
|
|
import cn.com.qmth.examcloud.core.examwork.base.enums.ExamProperty;
|
|
|
+import cn.com.qmth.examcloud.core.examwork.base.util.IpUtil;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseRelationRepo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamIpLimitRepo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamPaperTypeRelationRepo;
|
|
@@ -276,6 +277,7 @@ public class ExamCloudServiceProvider extends ControllerSupport implements ExamC
|
|
|
if(CollectionUtils.isNotEmpty(req.getIpWhitelist())) {
|
|
|
List<ExamIpLimitEntity> ips=new ArrayList<>();
|
|
|
for(String ip:req.getIpWhitelist()) {
|
|
|
+ IpUtil.checkIp(ip);
|
|
|
ExamIpLimitEntity tem=new ExamIpLimitEntity();
|
|
|
tem.setExamId(saved.getId());
|
|
|
tem.setIp(ip);
|