优化(斗鱼领取): 租约过期绑定失败时允许客户刷新二维码重试

This commit is contained in:
yml
2026-11-25 13:37:41 +08:00
parent 15e23312f6
commit be9a1011a8
2 changed files with 5 additions and 2 deletions
@@ -453,6 +453,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',
'account_role_cooldown', 'account_role_cooldown',
'customer_role_cooldown', 'customer_role_cooldown',
]) ])
@@ -164,7 +164,9 @@ 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(live?.issueCode === 'binding_failed' && live.accountReady) const bindingFailureRetryable = Boolean(
hasCustomerProfile && ['binding_failed', 'lease_expired'].includes(live?.issueCode || ''),
)
useEffect(() => { useEffect(() => {
const url = live?.qrUrl || '' const url = live?.qrUrl || ''
@@ -490,7 +492,7 @@ export default function DouyuFulfillmentPage() {
/> />
<p> <p>
{bindingFailureRetryable {bindingFailureRetryable
? '请刷新二维码后重新扫码,不会更换当前斗鱼账号。' ? '刷新后会重新分配可用斗鱼账号并生成新二维码,请重新扫码。'
: '请截图本页面并联系客服处理,客服会根据截图重新安排绑定。'} : '请截图本页面并联系客服处理,客服会根据截图重新安排绑定。'}
</p> </p>
{bindingFailureRetryable ? ( {bindingFailureRetryable ? (