修复(斗鱼领取): 扫码角色消失时提示刷新二维码,不误报冷却
This commit is contained in:
@@ -454,6 +454,7 @@ export function compareCustomerRole(task: DouyuTaskRow, live: LiveBindingState)
|
|||||||
const BINDING_FAILURE_ISSUES = new Set([
|
const BINDING_FAILURE_ISSUES = new Set([
|
||||||
'binding_failed',
|
'binding_failed',
|
||||||
'lease_expired',
|
'lease_expired',
|
||||||
|
'role_changed',
|
||||||
'account_role_cooldown',
|
'account_role_cooldown',
|
||||||
'customer_role_cooldown',
|
'customer_role_cooldown',
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -165,7 +165,8 @@ export default function DouyuFulfillmentPage() {
|
|||||||
const needsProfile = Boolean(task && !hasCustomerProfile)
|
const needsProfile = Boolean(task && !hasCustomerProfile)
|
||||||
const bindingFailed = Boolean(live && BINDING_FAILURE_ISSUES.has(live.issueCode))
|
const bindingFailed = Boolean(live && BINDING_FAILURE_ISSUES.has(live.issueCode))
|
||||||
const bindingFailureRetryable = Boolean(
|
const bindingFailureRetryable = Boolean(
|
||||||
hasCustomerProfile && ['binding_failed', 'lease_expired'].includes(live?.issueCode || ''),
|
hasCustomerProfile &&
|
||||||
|
['binding_failed', 'lease_expired', 'role_changed'].includes(live?.issueCode || ''),
|
||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user