perf(fulfillment): 优化本地能力选号查询与索引
This commit is contained in:
@@ -128,7 +128,9 @@ const EVENT_LABELS: Record<string, string> = {
|
||||
binding_failed: '游戏角色绑定失败',
|
||||
binding_reset: '重置角色资料和绑定记录',
|
||||
binding_stale_role_ignored: '忽略账号旧角色',
|
||||
binding_synced_from_account: '同步账号最新角色绑定',
|
||||
eligibility_check_failed: '兑换资格查询失败',
|
||||
eligibility_auto_refresh_failed: '自动刷新兑换资格失败',
|
||||
exchange_eligibility_checked: '刷新兑换资格',
|
||||
manual_exchange_completed: '人工兑换完成',
|
||||
marked_manual_required: '转人工处理',
|
||||
@@ -166,6 +168,7 @@ const ISSUE_LABELS: Record<string, string> = {
|
||||
};
|
||||
|
||||
const DOUYU_ACTION_LABELS: Record<string, string> = {
|
||||
query_game_name: '刷新角色绑定',
|
||||
query_elite_status: '查询精英宝典',
|
||||
create_elite_qr: '开通精英宝典',
|
||||
create_gold_qr: '充值鱼翅',
|
||||
@@ -241,7 +244,8 @@ function eventColor(value: string) {
|
||||
value.includes('completed') ||
|
||||
value.includes('allocated') ||
|
||||
value.includes('restored') ||
|
||||
value.includes('succeeded')
|
||||
value.includes('succeeded') ||
|
||||
value.includes('binding_synced')
|
||||
) {
|
||||
return 'green';
|
||||
}
|
||||
@@ -294,6 +298,9 @@ function eventDescription(event: { eventType: string; detail: Record<string, unk
|
||||
if (event.eventType === 'eligibility_check_failed') {
|
||||
return '实时查询兑换资格失败,可稍后重试';
|
||||
}
|
||||
if (event.eventType === 'eligibility_auto_refresh_failed') {
|
||||
return '账号变化后的自动刷新失败,任务状态保持不变,可手动刷新重试';
|
||||
}
|
||||
if (event.eventType === 'account_released') {
|
||||
return `释放原因:${String(detail.reason || '人工释放')}`;
|
||||
}
|
||||
@@ -331,6 +338,10 @@ function eventDescription(event: { eventType: string; detail: Record<string, unk
|
||||
if (event.eventType === 'binding_reset') {
|
||||
return `${String(detail.reason || '客服重置角色绑定')};客户需重新填写角色资料`;
|
||||
}
|
||||
if (event.eventType === 'binding_synced_from_account') {
|
||||
const channel = String(detail.gameChannel || '');
|
||||
return `账号已确认角色 ${String(detail.roleName || '-')}${channel ? `(${channel})` : ''}`;
|
||||
}
|
||||
if (event.eventType === 'task_created') return '订单已进入直播账号履约工作台';
|
||||
return '履约状态已更新';
|
||||
}
|
||||
@@ -1651,6 +1662,14 @@ export default function PlatformFulfillmentPage() {
|
||||
直接复用斗鱼精英宝典工作台任务,作用于当前履约账号;开通和充值会在任务窗口展示支付二维码。
|
||||
</Text>
|
||||
<Space wrap>
|
||||
<Button
|
||||
icon={<SyncOutlined />}
|
||||
disabled={!selected.account || !can('douyu:task')}
|
||||
loading={douyuActionLoading === 'query_game_name'}
|
||||
onClick={() => void runDouyuAccountAction('query_game_name')}
|
||||
>
|
||||
刷新角色绑定
|
||||
</Button>
|
||||
<Button
|
||||
icon={<ReloadOutlined />}
|
||||
disabled={!selected.account || !can('douyu:task')}
|
||||
|
||||
Reference in New Issue
Block a user