fix bug
This commit is contained in:
parent
9306e824d6
commit
69fb8bf0f9
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@ public class JudgeController {
|
|||
.setOiRankScore(null)
|
||||
.setScore(null)
|
||||
.setTime(null)
|
||||
.setJudger(null)
|
||||
.setJudger("")
|
||||
.setMemory(null);
|
||||
judgeService.updateById(judge);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue