feat(fulfillment): 接收并展示 order_site 客户主页截图
- 履约任务新增客户角色/平台/系统/主页截图/更新时间字段 - 迁移 0131 - order_site contractVersion=3 快照自动落客户资料 - 增加客户资料 integration 写入接口 - 工作台详情展示客户资料、平台角色比对和截图 - 补充客户资料保存/快照解析测试与对接文档
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# order_site 客户主页截图对接
|
||||
|
||||
## 流程
|
||||
|
||||
```text
|
||||
order_site 斗鱼领取页
|
||||
→ 客户填写游戏角色 + 上传个人主页截图(必填)
|
||||
→ order_site 文件服务上传,保存 objectKey
|
||||
→ douyu_fulfillment_tasks 保存截图字段
|
||||
→ live_hub outbox:platform_fulfillment.order_snapshot
|
||||
contractVersion=3
|
||||
customerRoleName / customerPlatform / customerSystem
|
||||
homeImages[{url,thumbnailUrl,objectKey,filename}]
|
||||
customerProfileUpdatedAt
|
||||
→ live-hub sync_order_snapshot 落平台履约任务
|
||||
→ 直播账号履约工作台「用户资料(order_site)」展示并比对
|
||||
```
|
||||
|
||||
## order_site
|
||||
|
||||
- 迁移:`180_douyu_customer_homepage_screenshot.sql`
|
||||
- 上传接口:`POST /api/v1/douyu-fulfillment/:orderNo/homepage-screenshot`
|
||||
- 保存资料:`POST /api/v1/douyu-fulfillment/:orderNo/profile`
|
||||
- `homepageScreenshotObjectKey` 必填;
|
||||
- 后端校验 `file_assets` 的 scene/uploader/type;
|
||||
- 截图 URL 使用 `orders.claimBaseUrl` 的 origin 生成绝对地址。
|
||||
|
||||
## live-hub
|
||||
|
||||
- 迁移:`20261124_0131_fulfillment_customer_profile`
|
||||
- 字段:
|
||||
- `customer_role_name`
|
||||
- `customer_platform`
|
||||
- `customer_system`
|
||||
- `customer_home_images`(URL/缩略图/objectKey)
|
||||
- `customer_profile_updated_at`
|
||||
- 快照同步自动落这些字段;
|
||||
- 备用 integration 接口:
|
||||
`POST /api/integration/platform-fulfillment/customer-sessions/{task_id}/profile`
|
||||
- 工作台详情显示:
|
||||
- 客户角色、登录方式、系统;
|
||||
- 平台当前角色/渠道;
|
||||
- 一致/不一致标签;
|
||||
- 主页截图缩略图预览。
|
||||
|
||||
## 约束
|
||||
|
||||
- 截图至少 1 张,最多 5 张;
|
||||
- 截图只用于核对绑定,不进入斗鱼账号 CK;
|
||||
- 客户资料更新通过 outbox 快照同步,不靠客服手动转发图片。
|
||||
Reference in New Issue
Block a user