feat(fulfillment): 区分普通代确认与人工强制确认

- 普通代确认走 refresh_binding + actBind,不填角色/备注
- 强制确认保留角色+依据,并校验账号当前角色一致
- 前端拆成“代客户确认”和红色“强制确认”
- 补充普通代确认/角色不匹配回归测试与文档
This commit is contained in:
yml
2026-11-24 16:57:49 +08:00
parent 55afbaa903
commit c6e6e66f2d
7 changed files with 188 additions and 9 deletions
@@ -649,3 +649,40 @@ confirm_bind.error:
人工确认只能作为“账号已经绑定到该角色、只是缺本次扫码证据”的兜底,
不能作为“换绑失败后强行标记成功”的按钮。
### 9.12 普通代确认 vs 人工强制确认
两种人工动作必须分开,不能都要求填角色/备注:
| 动作 | 使用场景 | 是否填信息 | 行为 |
| --- | --- | --- | --- |
| 代客户确认 | 客户已登记资料、已扫码,只是没点确认 | 否 | 刷新绑定证据后走正常 `actBind`;成功才 bound |
| 人工强制确认 | 账号已确认绑定该角色,但没有本次扫码证据 | 是(角色+依据) | 直接标 bound;必须记录操作人/角色/备注 |
普通代确认:
- `POST /tasks/{id}/bind/operator-confirm`;
- 内部 `refresh_binding` → 要求平台任务 `role_ready` → 创建正常 `confirm_bind`;
- 不直接改 bound,不写 `binding_manually_confirmed`;
- 同账号同角色可复用的情况会直接 bound(已有复用逻辑);
- 角色锁/actBind 冷却仍然生效。
人工强制确认:
- `POST /tasks/{id}/bind/manual-confirm`;
- 必须账号 `role_bind_status=bound` 且 `game_name == 确认角色`;
- 必须填写角色 + 至少 2 字依据;
- 不一致 409;
- 前端红色按钮,不一致时禁用。
订单 2632801853205627(任务 7936)这类:
```text
本次扫码角色 = 账号当前角色
本次可确认 = 不可确认(same_role_stale)
本次扫码与账号当前角色相同,可复用
```
属于**普通代确认**,运营一键“代客户确认”即可;不需要填写角色/备注,也不应该走强制确认。
订单 2632801603123492(任务 7882)这类账号当前角色与客户角色不一致的,普通代确认会被 actBind/角色锁挡住;强制确认也必须拒绝,只能换号或等冷却。