fix(fulfillment): mark confirmed role observations as bound
This commit is contained in:
@@ -347,6 +347,16 @@ function eventDescription(event: { eventType: string; detail: Record<string, unk
|
||||
const channel = String(detail.gameChannel || '');
|
||||
return `账号已确认角色 ${String(detail.roleName || '-')}${channel ? `(${channel})` : ''}`;
|
||||
}
|
||||
if (event.eventType === 'binding_observation_confirmed') {
|
||||
const pending = String(detail.pendingRoleName || '');
|
||||
const observed = String(detail.observedRoleName || '-');
|
||||
return pending && pending !== observed
|
||||
? `账号已绑定 ${observed};原待确认角色 ${pending} 已失效`
|
||||
: `账号已绑定 ${observed}`;
|
||||
}
|
||||
if (event.eventType === 'binding_pending_observation_superseded') {
|
||||
return `原待确认角色 ${String(detail.pendingRoleName || '-')} 已被当前绑定 ${String(detail.observedRoleName || '-')} 替换`;
|
||||
}
|
||||
if (event.eventType === 'task_created') return '订单已进入直播账号履约工作台';
|
||||
return '履约状态已更新';
|
||||
}
|
||||
@@ -1212,6 +1222,11 @@ export default function PlatformFulfillmentPage() {
|
||||
<Space direction="vertical" size={2}>
|
||||
<Tag>{bindingStatusLabel(task.bindingStatus)}</Tag>
|
||||
<Text>{task.bindTask?.roleName || (task.bindTask?.bindPhase === 'role_ready' ? '角色待确认' : '-')}</Text>
|
||||
{task.bindingStatus === 'bound' ? (
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
换绑时间:{formatTime(task.account?.roleChangeAvailableAt) || '无冷却'}
|
||||
</Text>
|
||||
) : null}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user