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