style: 修复 claim/affiliate-dash Prettier 格式
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user