修复(虎牙绑定): 扫错角色可重新扫码、绑定失败留证、确认后引导截图联系客服

按业务口径重审「资料 → 登录 → 读角色 → 绑定」全链路,修复 3 个 P0 与 4 处口径问题:

P0 重新扫码空转
- startPublicBinding 改为按 allowedActions 判定能否重新出码,不再只看 primaryAction。
  此前 first_bind_role_mismatch(primaryAction=contact_support)点「刷新绑定二维码」
  后端直接早退:二维码不重生成、旧 pending 不清,客户扫错角色后卡死。

P0 扫错角色被判成人工核实
- 换绑 pending 与目标资料不一致时不再返回 manual_review,改为 rebind_required
  (start_rebind + edit_profile + contact_support),客户可自愈。
- first_bind_role_mismatch 保留(后端仍会产出),客户页重新渲染该状态,
  确认按钮不再吞掉「重新扫码」「上一步修改资料」两个退回入口。
- requiresSupport 只在 manual_review 为真;canGenerateBindingQr 改为从 allowedActions 推导。
- 新增前端守卫测试:后端会产出的每个 flowState 在客户页都必须有可操作落点。

P0 确认后没有下一步引导
- confirmed 区块改为「绑定已确认」+「请截图本页,把订单号和这张截图发给客服」,
  展示并可复制订单号,保留刷新按钮。

失败留证
- Connector 拒绝时 bind_confirm_message 带平台返回码;确认写接口抛异常也落
  bind_confirm_message + last_error,不再只停在 submitting 等超时。
- rebind_platform_message 不再被「本次无消息」覆盖成空串;DTO 暴露
  bindConfirmState / bindConfirmMessage,客户页按去重顺序展示真实失败原因。
- 加密 role token 不再写入任务事件(仅保留 hasRoleToken 布尔标记)。

换绑冷却
- 平台未返回 changeBindTime 时不再推算「从现在起 N 天」;
  页面只在剩余天数 > 0 时展示「剩余约 N 天」,否则提示平台未返回。
- 冷却态补「刷新绑定状态」入口与「冷却结束后再回来点重新扫码换绑」指引。

文档同步虎牙绑定的可自愈动作、确认后截图引导、冷却与失败留证口径。
This commit is contained in:
yml
2026-12-02 11:02:37 +08:00
parent 366df12c9d
commit 79baab0cf7
13 changed files with 568 additions and 140 deletions
@@ -270,6 +270,52 @@
line-height: 1.6;
}
.customer-binding-verify .customer-binding-verify-title {
color: #fff;
font-size: 18px;
font-weight: 600;
}
.customer-binding-verify .customer-binding-verify-desc {
color: #cbd5e1;
font-size: 14px;
text-align: left;
}
.customer-binding-order-no {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 1px dashed #3a4150;
border-radius: 10px;
color: #9aa3b2;
font-size: 14px;
text-align: left;
}
.customer-binding-order-no strong {
flex: 1 1 auto;
min-width: 0;
color: #fff;
font-weight: 600;
overflow-wrap: anywhere;
}
.customer-binding-initial {
display: flex;
flex-direction: column;
gap: 12px;
}
.customer-binding-initial-desc {
margin: 0;
color: #e5e7eb;
font-size: 15px;
line-height: 1.6;
text-align: center;
}
.customer-binding-qr-card {
padding: 18px;
border-radius: 12px;