修复由于HDU加了SSL导致提交失败

This commit is contained in:
Himit_ZH 2021-07-23 20:00:00 +08:00
parent 6b0cc53973
commit 594147ab2a
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import top.hcode.hoj.utils.JsoupUtils;
*/
public class HDUProblemStrategy extends ProblemStrategy {
public static final String JUDGE_NAME = "HDU";
public static final String HOST = "http://acm.hdu.edu.cn";
public static final String HOST = "https://acm.hdu.edu.cn";
public static final String PROBLEM_URL = "/showproblem.php?pid=%s";
/**

View File

@ -18,7 +18,7 @@ import java.util.regex.Pattern;
@Slf4j(topic = "hoj")
public class HduJudge implements RemoteJudgeStrategy {
public static final String HOST = "http://acm.hdu.edu.cn";
public static final String HOST = "https://acm.hdu.edu.cn";
public static final String LOGIN_URL = "/userloginex.php?action=login";
public static final String SUBMIT_URL = "/submit.php?action=submit";
public static final String STATUS_URL = "/status.php?user=%s&pid=%s";