Skip to content

Commit b41db98

Browse files
authored
fix(problems): add captcha field for submitting code (#41)
1 parent 7d6d1a0 commit b41db98

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

luogu-api.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface SubmitCodeRequest {
7171
code: string;
7272
lang?: number;
7373
enableO2?: number;
74+
captcha?: string;
7475
}
7576

7677
export interface CreateProblemRequest {

problems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
</tr>
114114
<tr>
115115
<th align="right">请求主体</th>
116-
<td><code>application/json</code> (<code>SubmitCodeRequest</code>) 或 <code>multipart/form-data</code> (<code>{ file: Blob }</code>)</td>
116+
<td><code>application/json</code> (<code>SubmitCodeRequest</code>) 或 <code>multipart/form-data</code> (<code>{ file: Blob; captcha?: string }</code>)</td>
117117
</tr>
118118
<tr>
119119
<th align="right">响应主体</th>

0 commit comments

Comments
 (0)