This commit is contained in:
Himit_ZH 2021-08-09 02:04:42 +08:00
parent 1ec19420bb
commit 9417e6d6cd
2 changed files with 6 additions and 4 deletions

View File

@ -124,8 +124,9 @@ public class RemoteJudgeGetResult {
}
public void changeAccountStatus(String remoteJudge, String username, String password) {
// 由于POJ特殊 之前获取提交ID未释放账号所以在此需要将账号变为可用
if (remoteJudge.equals(Constants.RemoteJudge.POJ_JUDGE.getName())) {
// 由于POJ和HDU特殊 之前获取提交ID未释放账号所以在此需要将账号变为可用
if (remoteJudge.equals(Constants.RemoteJudge.POJ_JUDGE.getName())
|| remoteJudge.equals(Constants.RemoteJudge.HDU_JUDGE.getName())) {
UpdateWrapper<RemoteJudgeAccount> remoteJudgeAccountUpdateWrapper = new UpdateWrapper<>();
remoteJudgeAccountUpdateWrapper.set("status", true)
.eq("oj", remoteJudge)

View File

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