|
@@ -91,7 +91,7 @@ public class TEStudentController {
|
|
|
@ApiOperation(value = "学生登录接口")
|
|
|
@RequestMapping(value = "/login", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "学生信息", response = TEExamResultDto.class)})
|
|
|
- public Result login(@ApiJsonObject(name = "loginAccount", value = {
|
|
|
+ public Result login(@ApiJsonObject(name = "loginStudent", value = {
|
|
|
@ApiJsonProperty(key = "identity", description = "证件号"),
|
|
|
@ApiJsonProperty(key = "password", description = "密码"),
|
|
|
@ApiJsonProperty(key = "orgId", type = "long", example = "1", description = "机构id")
|
|
@@ -218,7 +218,7 @@ public class TEStudentController {
|
|
|
//获取剩余断点次数
|
|
|
Integer leftBreakResumeCount = Objects.isNull(ExamRecordCacheUtil.getLeftBreakResumeCount(recordId)) ? 0 : ExamRecordCacheUtil.getLeftBreakResumeCount(recordId);
|
|
|
//如果断点时间大于整体断点时间,则强制交卷
|
|
|
- if (Objects.equals(status, ExamRecordStatusEnum.ANSWERING.name())) {
|
|
|
+ if (Objects.equals(status, ExamRecordStatusEnum.ANSWERING.name()) || Objects.equals(status, ExamRecordStatusEnum.bREAK_OFF.name())) {
|
|
|
if (Objects.nonNull(clientLastSyncTime) && (System.currentTimeMillis() - clientLastSyncTime.getTime() / 1000) > ec.getBreakExpireSeconds()) {
|
|
|
teExamService.finish(teStudentCacheDto.getId(), recordId, FinishTypeEnum.AUTO.name(), durationSeconds);
|
|
|
List<TEExamDto> list = teExamService.getWaitingExam(teStudent.getId(), examId, orgId);
|