From 0deb498a05f315eea5981c9f6f4401987304ab95 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Wed, 5 Aug 2026 20:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20affiliate-dash=20=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E4=B8=8D=E4=B8=80=E8=87=B4=E6=97=B6=E4=BB=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=AC=AC=203=20=E6=AD=A5=20+=20=E6=9B=B4=E6=96=B0=20U?= =?UTF-8?q?ID=20=E5=90=8E=E6=97=A7=E7=BB=91=E5=AE=9A=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=AE=8B=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 前端:标题/副文案改为 bound && !bindMismatch 才显示第 3 步,不一致时保持第 2 步并引导重新绑定 - 后端:bindAffiliateDashClaimForTask 重新绑定时清空 bound/boundAccount/bindMismatch,避免旧账号残留导致误报不一致 --- .../src/services/claim/kuaishou-cloud-claim-service.ts | 4 ++++ .../src/pages/claim/ClaimAffiliateDashSteps.tsx | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts b/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts index 834fefe2..23123d21 100644 --- a/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts +++ b/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts @@ -516,6 +516,10 @@ async function bindAffiliateDashClaimForTask(task: TaskRow, gameAccount: string) qrUrl: bindResult.qrUrl, gameAccount, expectedGameAccount: gameAccount, + // 重新绑定:清空旧绑定状态,等待用户用新账号扫码完成新绑定 + bound: false, + boundAccount: '', + bindMismatch: false, } const updatedTask = await updateTask(task.id, { diff --git a/apps/frontend/src/pages/claim/ClaimAffiliateDashSteps.tsx b/apps/frontend/src/pages/claim/ClaimAffiliateDashSteps.tsx index bae95c94..061e26f9 100644 --- a/apps/frontend/src/pages/claim/ClaimAffiliateDashSteps.tsx +++ b/apps/frontend/src/pages/claim/ClaimAffiliateDashSteps.tsx @@ -35,9 +35,15 @@ export function AffiliateDashClaimPanel({
- {bound ? '第 3 步:确认并提交发货' : '第 2 步:绑定领取账号'} + {bound && !bindMismatch ? '第 3 步:确认并提交发货' : '第 2 步:绑定领取账号'} -

{bound ? '账号绑定成功,确认无误后提交发货' : '打开绑定链接完成绑定,系统将自动确认'}

+

+ {bound && !bindMismatch + ? '账号绑定成功,确认无误后提交发货' + : bindMismatch + ? '绑定账号与填写 UID 不一致,请核对 UID 后用正确账号重新绑定' + : '打开绑定链接完成绑定,系统将自动确认'} +