修复(斗鱼领取): 扫码角色消失时提示刷新二维码,不误报冷却
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user