Skip to content

fix: 补齐腾讯评分题提交并修复真实回归失败 - #15

Merged
LING71671 merged 1 commit into
mainfrom
codex/fix-tencent-live-ratings
Nov 12, 2026
Merged

LING71671 merged 1 commit into
mainfrom
codex/fix-tencent-live-ratings

Conversation

@LING71671

Copy link
Copy Markdown
Collaborator

腾讯真实提交回归固定使用的授权问卷含有 NPS 和矩阵评分题,解析器此前直接拒绝这些题型,导致每次合并后的 Live tencent 失败。与此同时,平台返回的 hidden: false 会被误判为未知显示条件,阻止正常作答。

修复

  • 补齐腾讯 NPS、星级评分和矩阵评分的解析、默认配置与提交。根据平台起点和选项数生成实际分值,0 分按有效答案提交;矩阵评分逐行使用平台题目、行 ID 和分值生成答案。
  • 校验单选评分数量、分值范围和矩阵行数,拒绝缺失或越界答案。
  • 修复 hidden: false、空列表和空对象被误判为显示约束;真实的未解析约束继续阻止不确定的提交。
  • 腾讯线上解析回归改为必须生成有效配置;保留现有真实问卷和实际提交成功检查。
  • 添加授权问卷的公开评分题元数据夹具,覆盖边界分值、默认评分范围、矩阵完整性,以及默认配置→答案生成→提交→服务端记录确认链路;同步支持范围文档。

验证

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • go build ./...
  • 外部模块:GOWORK=off go test ./...(tests/consumer)
  • 在现有授权腾讯问卷 26070328/fa89 上执行一次 TestLiveProviderSubmission,成功返回,并通过答案会话更新确认服务端已记录。

合并后还会检查 main 上完整的 Go、文档同步和三平台真实提交工作流。

@LING71671
LING71671 merged commit 1659f61 into main Nov 12, 2026
10 checks passed
@LING71671
LING71671 deleted the codex/fix-tencent-live-ratings branch November 12, 2026 00:13
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.

1 participant