修复(斗鱼领取): 绑定任务已失败时不误归为准备中
This commit is contained in:
@@ -461,6 +461,7 @@ export function statusForLive(live: LiveBindingState): string {
|
||||
if (live.customerProfileReset === true) return 'waiting_profile'
|
||||
if (live.executionStatus === 'completed') return 'completed'
|
||||
if (live.executionStatus === 'cancelled') return 'cancelled'
|
||||
const bindTaskFailed = ['failed', 'error', 'stopped'].includes(live.bindTaskStatus)
|
||||
const bindingStarted =
|
||||
live.bindingStatus !== 'not_started' ||
|
||||
Boolean(live.bindTaskId) ||
|
||||
@@ -469,6 +470,7 @@ export function statusForLive(live: LiveBindingState): string {
|
||||
live.bindConfirmed
|
||||
if (
|
||||
live.bindingStatus === 'failed' ||
|
||||
bindTaskFailed ||
|
||||
(BINDING_FAILURE_ISSUES.has(live.issueCode) && bindingStarted)
|
||||
) {
|
||||
return 'failed'
|
||||
|
||||
Reference in New Issue
Block a user