|
|
|
@ -13,6 +13,7 @@ import javax.validation.constraints.NotNull;
|
|
|
|
|
import javax.validation.constraints.Pattern;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
import static cn.hutool.core.net.Ipv4Util.IP_SPLIT_MARK;
|
|
|
|
|
import static com.ibeetl.jlw.entity.dto.TeacherOpenCourseStudentSigninLogSigninDTO.TeacherOpenCourseStudentSigninLogTypeEnum.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -85,7 +86,7 @@ public class TeacherOpenCourseStudentSigninSettingQuery extends PageParam {
|
|
|
|
|
if(this.teacherOpenCourseStudentSigninSettingType.equals(ip_signin)) {
|
|
|
|
|
try {
|
|
|
|
|
for (String range : this.teacherOpenCourseStudentSigninSettingValue.split(",")) {
|
|
|
|
|
Assert.isTrue(range.split("-").length == 2, "IP段必须要有开始IP和结束IP!");
|
|
|
|
|
Assert.isTrue(range.split(IP_SPLIT_MARK).length == 2, "IP段必须要有开始IP和结束IP!");
|
|
|
|
|
}
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
Assert.isTrue(StringUtils.isEmpty(e.getMessage()), e.getMessage());
|
|
|
|
@ -94,7 +95,7 @@ public class TeacherOpenCourseStudentSigninSettingQuery extends PageParam {
|
|
|
|
|
Assert.isTrue(StringUtils.isBlank(this.teacherOpenCourseStudentSigninSettingValue), "手动签到,配置参数值必须为空!");
|
|
|
|
|
}
|
|
|
|
|
else if(this.teacherOpenCourseStudentSigninSettingType.equals(code_signin)) {
|
|
|
|
|
Assert.isTrue(this.teacherOpenCourseStudentSigninSettingValue.length() == 6, "验证码签到,配置参数值长度必须为 6!");
|
|
|
|
|
Assert.isTrue(this.teacherOpenCourseStudentSigninSettingValue.length() == 6, "验证码签到,配置参数值长度必须是6位!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|