Files
junhong_cmp_fiber/openspec/changes/archive/2026-09-07-fix-stop-resume-realname-policy/tasks.md
break 5424751993
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Has been cancelled
修复停复机忽略免实名策略并归档变更
2026-09-07 10:06:17 +08:00

18 lines
1.3 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.
## 1. 修复
- [x] 1.1 使用合成卡与套餐运行真实停复机判断,捕捉免实名卡被判停机的修复前失败。
- [x] 1.2 统一解析停复机实名策略,更新自动、设备及手动调用的错误处理。
## 2. 验证
- [x] 2.1 运行隔离 smoke覆盖免实名停复机、设备优先级、兼容行为、套餐限制及读取失败。
- [x] 2.2 格式化修改的 Go 文件,构建 API/worker校验独立 Change 并移除临时验证程序。
## 验证结果
- 临时 `go run ./cmd/realname-smoke-tmp`:修复前 6 个场景失败,其中免实名独立卡被判为 `not_realname` 且不可复机;修复后全部 12 个场景通过。
- 验证执行真实 `checkStopReasons``shouldResume`,允许保持在线的场景同时执行 `EvaluateAndAct`GORM 查询由合成数据回调提供,不连接数据库或网关。未验证真实上游停复机,也未执行设备批量及手动命令端到端场景。
- `gofmt -w internal/service/iot_card/stop_resume_service.go && go build ./cmd/api ./cmd/worker`:退出码 0Go 模块缓存写入出现 permission denied 警告,未阻断构建。
- `openspec validate fix-stop-resume-realname-policy --strict`:通过。
- 临时 smoke 文件及命令目录已删除,无永久测试、数据修改或生产操作。主 Specs 留待独立同步/归档流程。