|
@@ -89,6 +89,7 @@ public class TokenFilter implements Filter {
|
|
}
|
|
}
|
|
|
|
|
|
boolean isDoing = authService.isDoingExam(rootOrgId, accountType, account);
|
|
boolean isDoing = authService.isDoingExam(rootOrgId, accountType, account);
|
|
|
|
+ log.info("[Check Doing Exam] Result is " + isDoing);
|
|
if (isDoing) {
|
|
if (isDoing) {
|
|
reqContinue.yes = false;
|
|
reqContinue.yes = false;
|
|
this.renderError(response, new Result().error("尚在考试中不允许登录!").toString());
|
|
this.renderError(response, new Result().error("尚在考试中不允许登录!").toString());
|
|
@@ -122,6 +123,7 @@ public class TokenFilter implements Filter {
|
|
if (!isAllow) {
|
|
if (!isAllow) {
|
|
if (loginInfo.hasExpired(PLATFORM_SESSION_EXPIRE_TIME)) {
|
|
if (loginInfo.hasExpired(PLATFORM_SESSION_EXPIRE_TIME)) {
|
|
boolean isDoing = authService.isDoingExam(loginInfo.getRootOrgId(), loginInfo.getAccountType(), loginInfo.getAccount());
|
|
boolean isDoing = authService.isDoingExam(loginInfo.getRootOrgId(), loginInfo.getAccountType(), loginInfo.getAccount());
|
|
|
|
+ log.info("[Check Doing Exam] result is " + isDoing);
|
|
if (isDoing) {
|
|
if (isDoing) {
|
|
reqContinue.yes = false;
|
|
reqContinue.yes = false;
|
|
this.renderError(response, new Result().error("尚在考试中不允许登录!").toString());
|
|
this.renderError(response, new Result().error("尚在考试中不允许登录!").toString());
|