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(),