修复(半自动履约): 明确虎牙账号换绑冷却提示
This commit is contained in:
@@ -154,6 +154,7 @@ test('账号侧 7 天限制在生成二维码前拦截换绑', () => {
|
||||
assert.equal(decision.rebindBlockScope, 'account')
|
||||
assert.equal(decision.canGenerateBindingQr, false)
|
||||
assert.equal(decision.primaryAction, 'wait_account_rebind')
|
||||
assert.match(decision.message, /虎牙登录账号/)
|
||||
})
|
||||
|
||||
test('目标角色侧 7 天限制单独识别,不与账号限制混用', () => {
|
||||
|
||||
@@ -520,7 +520,7 @@ export function resolveHuyaBindingDecision(input: HuyaBindingDecisionInput): Huy
|
||||
'contact_support',
|
||||
),
|
||||
rebindBlockScope: 'account',
|
||||
message: `当前虎牙账号暂不可换绑,预计 ${base.accountAvailability.availableAt || '稍后'} 恢复`,
|
||||
message: `当前虎牙登录账号暂不可换绑,预计 ${base.accountAvailability.availableAt || '稍后'} 恢复`,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -547,7 +547,7 @@ export function resolveHuyaBindingDecision(input: HuyaBindingDecisionInput): Huy
|
||||
'contact_support',
|
||||
),
|
||||
rebindBlockScope: 'account',
|
||||
message: base.message || '当前虎牙账号暂不可换绑',
|
||||
message: base.message || '当前虎牙登录账号暂不可换绑',
|
||||
})
|
||||
}
|
||||
if (scope === 'target_role') {
|
||||
|
||||
@@ -442,9 +442,9 @@ export function displayStatus(task: TaskRow, decision = resolveTaskHuyaBindingDe
|
||||
case 'rebind_blocked_account':
|
||||
return status(
|
||||
'rebind_blocked_account',
|
||||
'账号换绑冷却中',
|
||||
'虎牙账号换绑冷却中',
|
||||
'customer',
|
||||
'更换账号或等待冷却结束',
|
||||
'等待该虎牙登录账号冷却结束,或更换虎牙账号',
|
||||
)
|
||||
case 'rebind_blocked_target_role':
|
||||
return status(
|
||||
|
||||
@@ -102,7 +102,7 @@ const BINDING_FLOW_LABELS: Record<string, string> = {
|
||||
rebind_qr_pending: '换绑待扫码',
|
||||
rebind_role_ready: '换绑待确认',
|
||||
rebind_effect_pending: '换绑生效中',
|
||||
rebind_blocked_account: '账号换绑冷却',
|
||||
rebind_blocked_account: '虎牙账号换绑冷却中',
|
||||
rebind_blocked_target_role: '目标角色冷却',
|
||||
rebind_rejected: '虎牙拒绝换绑',
|
||||
rebind_effect_failed: '换绑未生效',
|
||||
|
||||
@@ -55,3 +55,7 @@ test('注入按钮和完成按钮使用各自的门槛', () => {
|
||||
assert.equal(adminPage.match(/disabled=\{!canCompleteSemiAutoTask\(/g)?.length, 1)
|
||||
assert.ok(!adminPage.includes('function taskCanUseCredential('))
|
||||
})
|
||||
|
||||
test('换绑冷却明确指向虎牙登录账号', () => {
|
||||
assert.ok(adminPage.includes("rebind_blocked_account: '虎牙账号换绑冷却中'"))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user