|
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
|
+import cn.com.qmth.examcloud.commons.util.BooleanUtil;
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
import cn.com.qmth.examcloud.commons.util.StringUtil;
|
|
import cn.com.qmth.examcloud.commons.util.StringUtil;
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.ExamScoreDataCloudService;
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.ExamScoreDataCloudService;
|
|
@@ -72,8 +73,8 @@ public class SwjtuController {
|
|
examId = StringUtil.toLong(value);
|
|
examId = StringUtil.toLong(value);
|
|
}
|
|
}
|
|
|
|
|
|
- if (loginnameConf.equals(loginname) && passwordConf.equals(password)) {
|
|
|
|
-
|
|
|
|
|
|
+ if (2 != BooleanUtil.countTrue(loginnameConf.equals(loginname),
|
|
|
|
+ passwordConf.equals(password))) {
|
|
ResponseEntity<?> entity = ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();
|
|
ResponseEntity<?> entity = ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();
|
|
return entity;
|
|
return entity;
|
|
}
|
|
}
|