|
@@ -144,12 +144,12 @@ public class TEStudentController {
|
|
|
throw new BusinessException(ExceptionResultEnum.PASSWORD_ERROR);
|
|
|
}
|
|
|
//判断是否有正在考试的
|
|
|
- Long unFinishedRecordId=ExamingDataCacheUtil.getUnFinishedRecordId(user.getId());
|
|
|
- if(unFinishedRecordId!=null) {
|
|
|
- WebsocketStatusEnum sta=ExamRecordCacheUtil.getClientWebsocketStatus(unFinishedRecordId);
|
|
|
- if(WebsocketStatusEnum.ON_LINE.equals(sta)) {
|
|
|
- throw new BusinessException("该学生正在考试,不能登录");
|
|
|
- }
|
|
|
+ Long unFinishedRecordId = ExamingDataCacheUtil.getUnFinishedRecordId(user.getId());
|
|
|
+ if (unFinishedRecordId != null) {
|
|
|
+ WebsocketStatusEnum sta = ExamRecordCacheUtil.getClientWebsocketStatus(unFinishedRecordId);
|
|
|
+ if (WebsocketStatusEnum.ON_LINE.equals(sta)) {
|
|
|
+ throw new BusinessException("该学生正在考试,不能登录");
|
|
|
+ }
|
|
|
}
|
|
|
return userLoginCommon(user, examId, orgId);
|
|
|
}
|