Skip to content

feat(reverse-fill): 支持多选题逐字回放 - #5

Merged
hungryM0 merged 2 commits into
SurveyController:mainfrom
Quchaosheng:feature/reverse-fill-multiple
Nov 9, 2026
Merged

hungryM0 merged 2 commits into
SurveyController:mainfrom
Quchaosheng:feature/reverse-fill-multiple

Conversation

@Quchaosheng

Copy link
Copy Markdown
Contributor

问卷星多选导出成 "选项A┋选项B" 单串,原解析器遇到 ┋ 直接抛
"检测到多选串(┋),V1 不支持",多选题因此只能回退常规随机作答。

  • schema: 白名单加入 multiple,新增 REVERSE_FILL_KIND_CHOICES 与 ReverseFillAnswer.choice_indexes
  • parser: 抽出 _resolve_choice_index 复用单选项匹配(文本/序号/分数 三种导出都支持),新增 parse_multiple_answer 按 ┋ 切片去重
  • parser: supports_reverse_fill_runtime 对 multiple 沿用单选的 "带附加填空即不支持"判断
  • actions: build_reverse_fill_action 新增 multiple 分支,产出 input_type="checkbox" 的 AnswerAction,提交成 7$2|3 格式

Refs #105

问卷星多选导出成 "选项A┋选项B" 单串,原解析器遇到 ┋ 直接抛
"检测到多选串(┋),V1 不支持",多选题因此只能回退常规随机作答。

- schema: 白名单加入 multiple,新增 REVERSE_FILL_KIND_CHOICES 与
  ReverseFillAnswer.choice_indexes
- parser: 抽出 _resolve_choice_index 复用单选项匹配(文本/序号/分数
  三种导出都支持),新增 parse_multiple_answer 按 ┋ 切片去重
- parser: supports_reverse_fill_runtime 对 multiple 沿用单选的
  "带附加填空即不支持"判断
- actions: build_reverse_fill_action 新增 multiple 分支,产出
  input_type="checkbox" 的 AnswerAction,提交成 7$2|3 格式

Refs #105
@hungryM0 hungryM0 self-assigned this Nov 9, 2026
@hungryM0 hungryM0 linked an issue Nov 9, 2026 that may be closed by this pull request
@hungryM0 hungryM0 added enhancement New feature or request good first issue Good for newcomers labels Nov 9, 2026
@hungryM0
hungryM0 merged commit f73d104 into SurveyController:main Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

反填不支持多选题

2 participants