fix(fulfillment): 对齐客户确认状态并展示角色接口日志
- 客户页 bindReadyForConfirm 与平台任务 role_ready 对齐 - 详情返回 douyu_role_api_logs 最近 40 条 - 详情页增加角色接口日志诊断表 - 补充客户确认、日志读取回归测试 - 文档记录 11.22 成功 HAR 与角色日志时间线
This commit is contained in:
@@ -557,3 +557,34 @@ GET bindInfo?actAlias=20260120QYOOB
|
||||
`order_site` 侧不需要改协议:客户页读 live-hub 的 `bindReadyForConfirm`,
|
||||
确认时调 live-hub 的 `customer-sessions/{id}/binding/confirm`。修复后两侧读同
|
||||
一层 `role_ready`,order_site 只是如实展示 live-hub 的结果。
|
||||
|
||||
### 9.10 角色接口日志表 `douyu_role_api_logs`
|
||||
|
||||
绑定问题分析不出来,不是没数据,而是数据没被接到工作台详情里:
|
||||
|
||||
- `douyu_tasks.result` 只保留最后一次归一化结果;
|
||||
- `platform_fulfillment_events` 只记状态事件;
|
||||
- 每个 alias、每次轮询、actBind 前后的原始响应在
|
||||
**`douyu_role_api_logs`**(`stage / source / act_alias / role_name /
|
||||
is_bound_act / change_role_wait_time / response_json`)。
|
||||
|
||||
订单 2632801844205946(任务 7871)的实际时间线:
|
||||
|
||||
```text
|
||||
06:26:29 bind_qr.preflight QYOOB 坏小萌瑶瑶 bindAct=1;cjm 空
|
||||
06:26:45 binding_poll.action_alias QYOOB 坏小萌瑶瑶 bindAct=1
|
||||
06:29:35 binding_poll.legacy_changed cjm 雨佑佑 bindAct=0, bindRole=1
|
||||
→ 绑定任务 success / role_ready
|
||||
→ 平台任务被 QYOOB-only 门禁卡在 qr_pending
|
||||
```
|
||||
|
||||
这组日志一眼就能看出“客户已经在 cjm 扫到新角色,QYOOB 还是旧角色”,
|
||||
而不是靠猜 `douyu_tasks.result`。
|
||||
|
||||
已做:
|
||||
|
||||
- `get_task_detail` 增加 `bindingLogs`(最近 40 条,按 task 的绑定任务关联);
|
||||
- 履约详情页增加“角色接口日志(诊断)”表:时间、阶段、通道、角色、
|
||||
bindAct、换绑等待、错误/消息;
|
||||
- 以后先看这张表,再看平台任务状态,不再把“绑定任务 role_ready”和
|
||||
“平台任务 qr_pending”混为一谈。
|
||||
|
||||
Reference in New Issue
Block a user