From b2d92d1559fcb477302fc75da57b982ab59c6b6b Mon Sep 17 00:00:00 2001 From: yml2213 Date: Tue, 15 Sep 2026 12:40:01 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E5=A4=8D=20claim/affiliate-d?= =?UTF-8?q?ash=20Prettier=20=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../src/services/claim/kuaishou-cloud-claim-service.ts | 4 +--- apps/backend/src/services/fulfillment/affiliate-dash/index.ts | 4 +--- 2 files changed, 2 insertions(+), 6 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 5a6576e3..e27f74e5 100644 --- a/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts +++ b/apps/backend/src/services/claim/kuaishou-cloud-claim-service.ts @@ -234,9 +234,7 @@ async function submitAffiliateDashClaimUid( expectedGameAccount: expectedUid, // 乐玩「已授权免扫码」会直接 bound=true;否则清空等待扫码。 bound: alreadyBound, - boundAccount: alreadyBound - ? String(bindResult.gameAccount || expectedUid || '').trim() - : '', + boundAccount: alreadyBound ? String(bindResult.gameAccount || expectedUid || '').trim() : '', roleName: alreadyBound ? String(bindResult.roleName || '').trim() : '', gameChannel: alreadyBound ? String(bindResult.gameChannel || '').trim() : '', bindMismatch: false, diff --git a/apps/backend/src/services/fulfillment/affiliate-dash/index.ts b/apps/backend/src/services/fulfillment/affiliate-dash/index.ts index 5eeb3655..f4cccf70 100644 --- a/apps/backend/src/services/fulfillment/affiliate-dash/index.ts +++ b/apps/backend/src/services/fulfillment/affiliate-dash/index.ts @@ -364,9 +364,7 @@ export function normalizeAffiliateDashFlow(value: unknown): AffiliateDashFlow { bindMismatch: Boolean(source.bindMismatch), bound: Boolean(source.bound), boundAccount: String(source.boundAccount || '').trim(), - roleName: String( - source.roleName || rawResult?.role_name || raw?.role_name || '', - ).trim(), + roleName: String(source.roleName || rawResult?.role_name || raw?.role_name || '').trim(), gameChannel: String( source.gameChannel || rawResult?.game_channel || raw?.game_channel || '', ).trim(),