From 8d7be35797638a936e643ff6dd73c0ceaaaffa55 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 28 Apr 2023 09:41:34 +0800 Subject: [PATCH] fix: loj api endpoint --- .../subdomain/api/remote_judge/custom_account_validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/subdomain/api/remote_judge/custom_account_validator.php b/web/app/controllers/subdomain/api/remote_judge/custom_account_validator.php index 71cc969..ead5bab 100644 --- a/web/app/controllers/subdomain/api/remote_judge/custom_account_validator.php +++ b/web/app/controllers/subdomain/api/remote_judge/custom_account_validator.php @@ -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;