mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
vjudge: poj: ensure login before submission
This commit is contained in:
1 parent
ef42d1a553
commit
cfc74f0fc5
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/vjudge",
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.3",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -200,6 +200,7 @@ export default class POJProvider implements IBasicProvider {
|
||||
}
|
||||
|
||||
async submitProblem(id: string, lang: string, code: string, info) {
|
||||
await this.ensureLogin();
|
||||
const language = lang.includes('poj.') ? lang.split('poj.')[1] : '0';
|
||||
const comment = setting.langs[lang].comment;
|
||||
if (comment) {
|
||||
|
||||
Reference in new issue
Block a user