This commit is contained in:
undefined committed 2020-09-07 13:03:11 +08:00
1 parent 3dd4c1c994
commit 147637d539
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import { compilerText } from './utils';
export = async function compile(
lang: string, code: string, target: string, copyIn: any, next?: Function,
) {
const LANGS = yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs'));
const LANGS = yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs') as string);
if (!LANGS[lang]) throw new SystemError(`不支持的语言:${lang}`);
const info = LANGS[lang];
const f = {};