xif
This commit is contained in:
parent
1ec19420bb
commit
9417e6d6cd
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue