style: 修复 claim/affiliate-dash Prettier 格式

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-15 12:40:01 +08:00
co-authored by Cursor
parent 8e0cb7e295
commit b2d92d1559
2 changed files with 2 additions and 6 deletions
@@ -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,
@@ -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(),