mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: fix testcase id generation
This commit is contained in:
1 parent
3edc425a52
commit
c4897b0aba
9 files changed
+33
-38
No files matched your search
@@ -133,14 +133,11 @@ class JudgeTask {
|
||||
await judge[type].judge(this, startPromise);
|
||||
}
|
||||
|
||||
next(data: Partial<JudgeResultBody>, id?: number) {
|
||||
log.debug('Next: %d %o', id, data);
|
||||
next(data: Partial<JudgeResultBody>) {
|
||||
log.debug('Next: %d %o', data);
|
||||
data.key = 'next';
|
||||
data.rid = new ObjectID(this.rid);
|
||||
if (data.case) {
|
||||
data.case.id ||= id;
|
||||
data.case.message ||= '';
|
||||
}
|
||||
if (data.case) data.case.message ||= '';
|
||||
this.ws.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user