Files
jiapu/docs/superpowers/plans/2026-07-10-captcha-verify-track-contract.md
T
2026-07-10 17:08:22 +08:00

21 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-07-10 验证结果参数格式修正计划
- 计划编号:PC-021
- 开始时间:2026-07-10 14:31:14 +08:00
- 页面范围:`login.html``register.html``forgot-password.html`
- 接口范围:`POST /captcha/verify`
- 新契约:验证轨迹统一提交为 `payload.track`,不再提交旧的 `payload.data`
## 执行清单
1. [x] 写失败测试:按后端最新示例断言 `payload.track``left``top``trackList`
2. [x] 修改 `captcha-pages.js`:把 TAC 轨迹转换成后端要求的 `payload.track`
3. [x] 更新追踪文档中旧的 `payload.data.trackList` 记录。
4. [x] 运行焦点测试、语法检查和空白检查。
## 验证记录
- 2026-07-10 14:31:14 +08:00:开始按新请求体契约补失败测试。
- 2026-07-10 14:31:14 +08:00`node tests\captcha-pages.test.js` 已按预期失败,失败点为实际请求体仍提交 `payload.id``payload.data`
- 2026-07-10 14:34:28 +08:00:修复后 `node tests\captcha-pages.test.js``node tests\auth-page-structure.test.js``node tests\auth-pages.test.js``node --check public\js\captcha-pages.js` 均通过;`git diff --check` 无空白错误,仅有 LF/CRLF 换行提示。