mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
统一PostJudge接口
This commit is contained in:
1 parent
0ee306d0cf
commit
9efcdf9441
9 files changed
+108
-166
No files matched your search
@@ -128,10 +128,10 @@ class SystemScriptHandler extends SystemHandler {
|
||||
domainId,
|
||||
rid,
|
||||
status: STATUS.STATUS_ACCEPTED,
|
||||
judge_text: ret.toString(),
|
||||
message: ret.toString(),
|
||||
judger: 1,
|
||||
time_ms: time,
|
||||
memory_kb: 0,
|
||||
time,
|
||||
memory: 0,
|
||||
});
|
||||
})
|
||||
.catch((err: Error) => {
|
||||
@@ -140,10 +140,10 @@ class SystemScriptHandler extends SystemHandler {
|
||||
domainId,
|
||||
rid,
|
||||
status: STATUS.STATUS_SYSTEM_ERROR,
|
||||
judge_text: `${err}\n${err.stack}`,
|
||||
message: `${err}\n${err.stack}`,
|
||||
judger: 1,
|
||||
time_ms: time,
|
||||
memory_kb: 0,
|
||||
time,
|
||||
memory: 0,
|
||||
});
|
||||
});
|
||||
}, 300);
|
||||
|
||||
Reference in new issue
Block a user