From 8e11d804966f4a5cdf9b51018d7d506b465c8547 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Wed, 5 Aug 2026 22:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20affiliate-dash=20=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=89=8D=E7=BB=91=E5=AE=9A=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../claim/kuaishou-cloud-claim-service.ts | 32 +++---------------- 1 file changed, 4 insertions(+), 28 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 992943db..990cdf54 100644 --- a/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts +++ b/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts @@ -437,35 +437,11 @@ export async function submitAffiliateDashClaim( const gameAccount = expectedGameAccount let latestFlow = flow - // 强制校验:绑定返回的游戏账号与第一步填写 UID 不一致时禁止提交(防止 uid 输错), - // 不依赖请求体 UID,也不依赖平台 mismatch 字段,避免错绑后被前端或手动请求绕过。 + // 提交阶段不再实时调用 affiliate-dash bind-result。 + // 平台日志显示:正常流程在 submit 前额外触发一次 bind-result 后,delivery/submit 会在平台侧 + // bind_verify 阶段偶发/稳定返回“账号尚未绑定”。这里改为使用详情轮询已写入的本地绑定快照, + // 避免 submit 前的额外平台查询改变或干扰平台发货校验链路。 if (!isMock && flow.bindUuid) { - try { - const bindResult = await getAffiliateDashBindResult({ - orderNo: flow.orderNo, - bindUuid, - }) - const boundAccount = bindResult.gameAccount - const bindMismatch = - Boolean(bindResult.mismatch) || - Boolean(boundAccount && normalizeUid(boundAccount) !== normalizeUid(expectedGameAccount)) - latestFlow = { - ...flow, - bound: bindResult.bound, - boundAccount: boundAccount || flow.boundAccount, - gameChannel: bindResult.gameChannel || flow.gameChannel, - bindMismatch, - } - await updateTask(task.id, { - context_json: JSON.stringify({ - ...taskContext, - affiliateDash: latestFlow, - }), - updated_at: now, - }) - } catch { - // 拉取失败:只能使用本地最近一次详情刷新结果,不能无校验放行。 - } const latestBoundAccount = latestFlow.boundAccount const latestMismatch = Boolean(latestFlow.bindMismatch) ||