From be9a1011a8870de075dbb648704e5499fd6bee86 Mon Sep 17 00:00:00 2001 From: yml Date: Wed, 25 Nov 2026 13:37:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96(=E6=96=97=E9=B1=BC=E9=A2=86?= =?UTF-8?q?=E5=8F=96):=20=E7=A7=9F=E7=BA=A6=E8=BF=87=E6=9C=9F=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=A4=B1=E8=B4=A5=E6=97=B6=E5=85=81=E8=AE=B8=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E5=88=B7=E6=96=B0=E4=BA=8C=E7=BB=B4=E7=A0=81=E9=87=8D?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/douyu-fulfillment/douyu-fulfillment-service.ts | 1 + .../src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 ? (