修复(斗鱼领取): 扫码角色消失时提示刷新二维码,不误报冷却

This commit is contained in:
yml
2026-11-25 14:22:58 +08:00
parent be9a1011a8
commit 4e7145779f
2 changed files with 3 additions and 1 deletions
@@ -454,6 +454,7 @@ export function compareCustomerRole(task: DouyuTaskRow, live: LiveBindingState)
const BINDING_FAILURE_ISSUES = new Set([
'binding_failed',
'lease_expired',
'role_changed',
'account_role_cooldown',
'customer_role_cooldown',
])
@@ -165,7 +165,8 @@ export default function DouyuFulfillmentPage() {
const needsProfile = Boolean(task && !hasCustomerProfile)
const bindingFailed = Boolean(live && BINDING_FAILURE_ISSUES.has(live.issueCode))
const bindingFailureRetryable = Boolean(
hasCustomerProfile && ['binding_failed', 'lease_expired'].includes(live?.issueCode || ''),
hasCustomerProfile &&
['binding_failed', 'lease_expired', 'role_changed'].includes(live?.issueCode || ''),
)
useEffect(() => {