mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
测试:judger封装为模块
This commit is contained in:
1 parent
5d7f57334f
commit
6134a16f8c
8 files changed
+305
-30
No files matched your search
@@ -81,9 +81,8 @@ async function judge(rid) {
|
||||
const rdoc = await get(rid);
|
||||
const pdoc = await problem.getById(rdoc.pid);
|
||||
await task.add({
|
||||
event: 'judge',
|
||||
type: 'judge',
|
||||
rid,
|
||||
type: 0,
|
||||
pid: rdoc.pid,
|
||||
data: pdoc.data,
|
||||
lang: rdoc.lang,
|
||||
@@ -96,9 +95,8 @@ async function rejudge(rid) {
|
||||
const rdoc = await get(rid);
|
||||
const pdoc = await problem.getById(rdoc.pid);
|
||||
await task.add({
|
||||
event: 'judge',
|
||||
type: 'judge',
|
||||
rid,
|
||||
type: 0,
|
||||
pid: rdoc.pid,
|
||||
data: pdoc.data,
|
||||
lang: rdoc.lang,
|
||||
|
||||
Reference in new issue
Block a user