From bb3a831a6e5f86f87eca6030d112ca57e26fb105 Mon Sep 17 00:00:00 2001 From: opzc35 Date: Tue, 19 Aug 2025 19:43:27 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B4=9B=E8=B0=B7?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E9=AA=8C=E8=AF=81=E7=A0=81=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems.md b/problems.md index ddd10c6..fe9cb45 100644 --- a/problems.md +++ b/problems.md @@ -113,7 +113,7 @@ 请求主体 - application/json (SubmitCodeRequest) 或 multipart/form-data ({ file: Blob }) + application/json (SubmitCodeRequest) 或 multipart/form-data ({ file: Blob }),如果要求使用验证码,还需加上application/json(captcha) 响应主体 From cdff34a9790ba8ca491034cf29135c7ad56a31d9 Mon Sep 17 00:00:00 2001 From: opzc35 Date: Tue, 19 Aug 2025 21:26:07 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=B9=E4=BA=8E?= =?UTF-8?q?=E8=A6=81=E6=B1=82=E9=AA=8C=E8=AF=81=E7=A0=81=E7=9A=84=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E9=AA=8C=E8=AF=81=E7=A0=81=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luogu-api.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/luogu-api.d.ts b/luogu-api.d.ts index 5e9804f..0b00abc 100644 --- a/luogu-api.d.ts +++ b/luogu-api.d.ts @@ -71,6 +71,7 @@ export interface SubmitCodeRequest { code: string; lang?: number; enableO2?: number; + captcha: string; } export interface CreateProblemRequest { From 5f26f194e6483dc5847f9dc0fe0618eca930ed9b Mon Sep 17 00:00:00 2001 From: opzc35 Date: Tue, 19 Aug 2025 21:27:13 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=B9=E4=BA=8E?= =?UTF-8?q?=E8=A6=81=E6=B1=82=E9=AA=8C=E8=AF=81=E7=A0=81=E7=9A=84=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E9=AA=8C=E8=AF=81=E7=A0=81=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems.md b/problems.md index fe9cb45..8e97554 100644 --- a/problems.md +++ b/problems.md @@ -113,7 +113,7 @@ 请求主体 - application/json (SubmitCodeRequest) 或 multipart/form-data ({ file: Blob }),如果要求使用验证码,还需加上application/json(captcha) + application/json (SubmitCodeRequest,如果要求使用验证码,还需加上application/json(captcha)) 或 multipart/form-data ({ file: Blob },如果要求使用验证码,还需加上application/json(captcha)) 响应主体 From e18b76e1541620ccf077947bb2f232951c3c19df Mon Sep 17 00:00:00 2001 From: opzc35 Date: Tue, 19 Aug 2025 21:47:23 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ud2 --- luogu-api.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luogu-api.d.ts b/luogu-api.d.ts index 0b00abc..18429ee 100644 --- a/luogu-api.d.ts +++ b/luogu-api.d.ts @@ -71,7 +71,7 @@ export interface SubmitCodeRequest { code: string; lang?: number; enableO2?: number; - captcha: string; + captcha?: string; } export interface CreateProblemRequest { From da3de47b7f737adc49c0964603b27a9051e1637f Mon Sep 17 00:00:00 2001 From: opzc35 Date: Tue, 19 Aug 2025 21:47:36 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ud2 --- problems.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems.md b/problems.md index 8e97554..3b5a01a 100644 --- a/problems.md +++ b/problems.md @@ -113,7 +113,7 @@ 请求主体 - application/json (SubmitCodeRequest,如果要求使用验证码,还需加上application/json(captcha)) 或 multipart/form-data ({ file: Blob },如果要求使用验证码,还需加上application/json(captcha)) + application/json (SubmitCodeRequest) 或 multipart/form-data ({ file: Blob; captcha?: string }) 响应主体