mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: fix
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "3.3.1",
|
"version": "3.3.2",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -150,11 +150,10 @@ export default class Hydro implements Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
send(rid: string, key: 'next' | 'end', data: Partial<JudgeResultBody>) {
|
send(rid: string, key: 'next' | 'end', data: Partial<JudgeResultBody>) {
|
||||||
data.key = key;
|
|
||||||
if (data.case && typeof data.case.message === 'string') data.case.message = removeNixPath(data.case.message);
|
if (data.case && typeof data.case.message === 'string') data.case.message = removeNixPath(data.case.message);
|
||||||
if (typeof data.message === 'string') data.message = removeNixPath(data.message);
|
if (typeof data.message === 'string') data.message = removeNixPath(data.message);
|
||||||
if (typeof data.compilerText === 'string') data.compilerText = removeNixPath(data.compilerText);
|
if (typeof data.compilerText === 'string') data.compilerText = removeNixPath(data.compilerText);
|
||||||
this.ws.send(JSON.stringify(data));
|
this.ws.send(JSON.stringify({ ...data, rid, key }));
|
||||||
}
|
}
|
||||||
|
|
||||||
getNext(t: JudgeTask) {
|
getNext(t: JudgeTask) {
|
||||||
|
|||||||
Reference in new issue
Block a user