mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:48:42 +00:00
fix: loj api endpoint
This commit is contained in:
parent
8720fb3079
commit
8d7be35797
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user