diff --git a/apps/backend/src/services/douyu-fulfillment/douyu-fulfillment-service.ts b/apps/backend/src/services/douyu-fulfillment/douyu-fulfillment-service.ts index b4db027c..73f6d625 100644 --- a/apps/backend/src/services/douyu-fulfillment/douyu-fulfillment-service.ts +++ b/apps/backend/src/services/douyu-fulfillment/douyu-fulfillment-service.ts @@ -453,6 +453,7 @@ export function compareCustomerRole(task: DouyuTaskRow, live: LiveBindingState) const BINDING_FAILURE_ISSUES = new Set([ 'binding_failed', + 'lease_expired', 'account_role_cooldown', 'customer_role_cooldown', ]) diff --git a/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx b/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx index a0316c63..703a5902 100644 --- a/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx +++ b/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx @@ -164,7 +164,9 @@ export default function DouyuFulfillmentPage() { ) const needsProfile = Boolean(task && !hasCustomerProfile) 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(() => { const url = live?.qrUrl || '' @@ -490,7 +492,7 @@ export default function DouyuFulfillmentPage() { />
{bindingFailureRetryable - ? '请刷新二维码后重新扫码,不会更换当前斗鱼账号。' + ? '刷新后会重新分配可用斗鱼账号并生成新二维码,请重新扫码。' : '请截图本页面并联系客服处理,客服会根据截图重新安排绑定。'}
{bindingFailureRetryable ? (