fix(fulfillment): 角色 7 天锁命中时转人工
- 角色 pending 时查 7 天内是否已绑定其他斗鱼账号 - 命中不调 actBind,订单转 manual_required - 时间线记录原账号、绑定时间、可复用时间和占用业务 - 确认前和启动对账补充校验,避免存量订单继续尝试 - 补充同账号、超窗口、确认前和启动对账回归测试
This commit is contained in:
@@ -133,6 +133,7 @@ const EVENT_LABELS: Record<string, string> = {
|
||||
binding_false_confirmation_reverted: '纠正误判的账号历史绑定',
|
||||
binding_pending_task_linked: '关联最新待确认角色',
|
||||
binding_pending_observation_superseded: '旧待确认角色已被最新绑定替换',
|
||||
binding_role_locked_elsewhere: '用户角色已被其他账号占用',
|
||||
binding_observation_confirmed: '账号观测确认角色绑定',
|
||||
binding_confirmed: '履约绑定已确认',
|
||||
binding_sync_rejected: '忽略不匹配的绑定证据',
|
||||
@@ -169,6 +170,7 @@ const ISSUE_LABELS: Record<string, string> = {
|
||||
binding_failed: '绑定失败',
|
||||
account_role_cooldown: '斗鱼账号仍在换绑冷却期',
|
||||
customer_role_cooldown: '游戏角色仍在换绑冷却期',
|
||||
customer_role_bound_elsewhere: '用户角色 7 天内已绑定其他斗鱼账号',
|
||||
lease_expired: '账号租约已过期',
|
||||
manual_required: '需要人工处理',
|
||||
source_cancelled: '来源订单已取消',
|
||||
@@ -363,6 +365,9 @@ function eventDescription(event: { eventType: string; detail: Record<string, unk
|
||||
const channel = String(detail.confirmedChannel || '');
|
||||
return `已确认订单角色 ${String(detail.confirmedRoleName || '-')}${channel ? `(${channel})` : ''}`;
|
||||
}
|
||||
if (event.eventType === 'binding_role_locked_elsewhere') {
|
||||
return String(detail.message || `用户角色已被其他账号占用,请复用原账号或等待`);
|
||||
}
|
||||
if (event.eventType === 'binding_sync_rejected') {
|
||||
const reason = String(detail.reason || '');
|
||||
if (reason === 'target_mismatch') {
|
||||
|
||||
Reference in New Issue
Block a user