fix compling

This commit is contained in:
Himit_ZH 2021-08-09 02:35:18 +08:00
parent 9417e6d6cd
commit 808a95c9f1
2 changed files with 6 additions and 7 deletions

View File

@ -68,7 +68,8 @@ public class RemoteJudgeGetResult {
Map<String, Object> result = remoteJudgeStrategy.result(resultSubmitId, username, password, cookies);
Integer status = (Integer) result.getOrDefault("status", Constants.Judge.STATUS_SYSTEM_ERROR.getStatus());
if (status.intValue() != Constants.Judge.STATUS_PENDING.getStatus() &&
status.intValue() != Constants.Judge.STATUS_JUDGING.getStatus()) {
status.intValue() != Constants.Judge.STATUS_JUDGING.getStatus() &&
status.intValue() != Constants.Judge.STATUS_COMPILING.getStatus()) {
// 由于POJ特殊 之前获取提交ID未释放账号所以在此需要将账号变为可用
changeAccountStatus(remoteJudge, username, password);
@ -124,9 +125,8 @@ public class RemoteJudgeGetResult {
}
public void changeAccountStatus(String remoteJudge, String username, String password) {
// 由于POJ和HDU特殊 之前获取提交ID未释放账号所以在此需要将账号变为可用
if (remoteJudge.equals(Constants.RemoteJudge.POJ_JUDGE.getName())
|| remoteJudge.equals(Constants.RemoteJudge.HDU_JUDGE.getName())) {
// 由于POJ特殊 之前获取提交ID未释放账号所以在此需要将账号变为可用
if (remoteJudge.equals(Constants.RemoteJudge.POJ_JUDGE.getName())) {
UpdateWrapper<RemoteJudgeAccount> remoteJudgeAccountUpdateWrapper = new UpdateWrapper<>();
remoteJudgeAccountUpdateWrapper.set("status", true)
.eq("oj", remoteJudge)

View File

@ -85,9 +85,8 @@ public class RemoteJudgeToSubmit {
log.error("网络错误---------------->获取不到提交ID");
return;
}else {
// 对POJ和POJ特殊 需要一直保持提交和获取结果时账号唯一所以需要特别过滤
if (!remoteJudge.equals(Constants.RemoteJudge.POJ_JUDGE.getName())&&
!remoteJudge.equals(Constants.RemoteJudge.HDU_JUDGE.getName())) {
// 对POJ特殊 需要一直保持提交和获取结果时账号唯一所以需要特别过滤
if (!remoteJudge.equals(Constants.RemoteJudge.POJ_JUDGE.getName())) {
UpdateWrapper<RemoteJudgeAccount> remoteJudgeAccountUpdateWrapper = new UpdateWrapper<>();
remoteJudgeAccountUpdateWrapper.set("status", true)
.eq("oj", remoteJudge)