Compare commits

...

2 Commits

Author SHA1 Message Date
8f3120c3f0
chore(remote_judger): more error details
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-28 09:55:03 +08:00
8d7be35797
fix: loj api endpoint 2023-04-28 09:41:34 +08:00
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ export default async function daemon(config: UOJConfig) {
status: 'Judged',
score: 0,
error: 'Judgment Failed',
details: `<error>${htmlspecialchars(err.message)}</error>`,
details: `<error>${htmlspecialchars(err.stack)}</error>`,
}),
judge_time,
});

View File

@ -39,7 +39,7 @@ class AccountService {
} catch (e) {
logger.error(e);
await end({ error: true, status: 'Judgment Failed', message: e.message });
await end({ error: true, status: 'Judgment Failed', message: e.stack });
}
}

View File

@ -79,7 +79,7 @@ if ($type == 'luogu') {
}, 3);
} else if ($type == 'loj') {
retry_loop(function () use (&$curl, &$res) {
$curl->get('https://api.loj.ac.cn/api/auth/getSessionInfo?token=' . UOJRequest::post('token', 'is_string', ''));
$curl->get('https://api.loj.ac/api/auth/getSessionInfo?token=' . UOJRequest::post('token', 'is_string', ''));
if ($curl->error) {
return false;