mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: key check report
This commit is contained in:
1 parent
cf4ef57f68
commit
132ef0312c
14 files changed
+38
-25
No files matched your search
@@ -229,6 +229,7 @@ export default async function readCases(folder: string, cfg: Record<string, any>
|
||||
result.subtasks = c.subtasks;
|
||||
result.count = c.count;
|
||||
}
|
||||
if ((!args.key) || args.key !== result.key) isValidConfig(result);
|
||||
if (args.key && args.key !== result.key) throw new FormatError('Incorrect secret key');
|
||||
if (!args.key) isValidConfig(result);
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user