fix: 端启停改为仅由 identity 执行

This commit is contained in:
Nixevol
2026-09-30 16:22:48 +08:00
parent 1a4bf6f185
commit ac08b6c071
3 changed files with 161 additions and 1 deletions
+9
View File
@@ -899,6 +899,15 @@
- 备选方案:登录 4 KiB(与注册一致);未采用,8 KiB 对口令字段更宽裕。
- 影响:超大请求快速失败;合法批量 JSON(约 200 KiB)仍低于 1 MiB。
### 复审修复 H-03
- 日期:2026-09-30
- 原条款:PRD F01 停用作废不可恢复;审查 #46。
- 实际做法:注入 Identity 时 `handleEndpointPatch` 给 `patchEndpoint` 传 nil 的 enabled,启停只由 `identity.Disable`/`Enable` 执行。界面部分在 W-05。
- 原因:先写 enabled 再级联失败会留下半生效状态。
- 备选方案:同一事务里写 enabled 与作废;Identity 接口当前不暴露事务。
- 影响:Identity 失败时端仍保持原启用状态。
## 后台网页 W
1. **W1–W3 阶段使用内存假数据,不请求真实 `/api/admin`**