fix: loj api endpoint

This commit is contained in:
Baoshuo Ren 2023-04-28 09:41:34 +08:00
parent 8720fb3079
commit 8d7be35797
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -79,7 +79,7 @@ if ($type == 'luogu') {
}, 3); }, 3);
} else if ($type == 'loj') { } else if ($type == 'loj') {
retry_loop(function () use (&$curl, &$res) { 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) { if ($curl->error) {
return false; return false;