Skip to content

Conversation

@opzc35
Copy link
Contributor

@opzc35 opzc35 commented Aug 19, 2025

现在洛谷要求部分提交需要验证码,提交题目API同理需要上传验证码信息

Copy link
Owner

@0f-0b 0f-0b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有两个疑问:

  • JSON 请求中 captcha 的数据类型是什么?请在 luogu-api.d.tsSubmitCodeRequest 末尾增加一个字段来说明,比如是字符串就写 captcha?: string
  • 要求验证码的题目是否支持提交文件?如果支持,那么请在 file: Blob 后面以相同方式说明验证码字段的名称和类型。

@opzc35
Copy link
Contributor Author

opzc35 commented Aug 19, 2025

done

@opzc35 opzc35 requested a review from 0f-0b August 19, 2025 13:27
opzc35 and others added 2 commits August 19, 2025 21:47
Co-authored-by: ud2 <sjx233@qq.com>
Co-authored-by: ud2 <sjx233@qq.com>
@opzc35 opzc35 requested a review from 0f-0b August 19, 2025 13:48
@0f-0b 0f-0b merged commit b41db98 into 0f-0b:main Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants