This commit is contained in:
Himit_ZH 2021-11-28 14:18:39 +08:00
parent 9306e824d6
commit 69fb8bf0f9
4 changed files with 5 additions and 7 deletions

View File

@ -105,7 +105,7 @@ public class AdminJudgeController {
// 设置默认值
judge.setStatus(Constants.Judge.STATUS_PENDING.getStatus()); // 开始进入判题队列
judge.setVersion(judge.getVersion() + 1);
judge.setJudger(null)
judge.setJudger("")
.setTime(null)
.setMemory(null)
.setErrorMessage(null)
@ -152,12 +152,11 @@ public class AdminJudgeController {
idMapStatus.put(judge.getSubmitId(), judge.getStatus());
judge.setStatus(Constants.Judge.STATUS_PENDING.getStatus()); // 开始进入判题队列
judge.setVersion(judge.getVersion() + 1);
judge.setJudger(null)
judge.setJudger("")
.setTime(null)
.setMemory(null)
.setErrorMessage(null)
.setOiRankScore(null)
.setJudger(null)
.setScore(null);
submitIdList.add(judge.getSubmitId());
}

View File

@ -232,7 +232,7 @@ public class JudgeController {
.setOiRankScore(null)
.setScore(null)
.setTime(null)
.setJudger(null)
.setJudger("")
.setMemory(null);
judgeService.updateById(judge);

View File

@ -233,7 +233,7 @@ public class CodeForcesJudge implements RemoteJudgeStrategy {
String csrfToken = getCsrfToken(getSubmitUrl(contestId));
HashMap<String, Object> paramMap = new HashMap<>();
paramMap.put("csrf_token", csrfToken);
paramMap.put("_tta", 594);
paramMap.put("_tta", 140);
paramMap.put("bfaa", "f1b3f18c715565b589b7823cda7448ce");
paramMap.put("ftaa", "");
paramMap.put("action", "submitSolutionFormSubmitted");
@ -258,7 +258,7 @@ public class CodeForcesJudge implements RemoteJudgeStrategy {
String log = String.format("Codeforces[%s] [%s]:Failed to submit code, caused by `Source Code Error`", contestId, problemID);
throw new RuntimeException(log);
}
String log = String.format("Codeforces[%s] [%s]:Failed to submit code, caused by `Unknown`", contestId, problemID);
String log = String.format("Codeforces[%s] [%s]:Failed to submit code, caused by `%s`", contestId, problemID,response.body());
throw new RuntimeException(log);
}
}

View File

@ -85,7 +85,6 @@ public class Judge implements Serializable {
@ApiModelProperty(value = "训练id非训练提交默认为null")
private Long tid;
@TableField(updateStrategy = FieldStrategy.IGNORED)
@ApiModelProperty(value = "判题机名称")
private String judger;