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,
|
expectedGameAccount: expectedUid,
|
||||||
// 乐玩「已授权免扫码」会直接 bound=true;否则清空等待扫码。
|
// 乐玩「已授权免扫码」会直接 bound=true;否则清空等待扫码。
|
||||||
bound: alreadyBound,
|
bound: alreadyBound,
|
||||||
boundAccount: alreadyBound
|
boundAccount: alreadyBound ? String(bindResult.gameAccount || expectedUid || '').trim() : '',
|
||||||
? String(bindResult.gameAccount || expectedUid || '').trim()
|
|
||||||
: '',
|
|
||||||
roleName: alreadyBound ? String(bindResult.roleName || '').trim() : '',
|
roleName: alreadyBound ? String(bindResult.roleName || '').trim() : '',
|
||||||
gameChannel: alreadyBound ? String(bindResult.gameChannel || '').trim() : '',
|
gameChannel: alreadyBound ? String(bindResult.gameChannel || '').trim() : '',
|
||||||
bindMismatch: false,
|
bindMismatch: false,
|
||||||
|
|||||||
@@ -364,9 +364,7 @@ export function normalizeAffiliateDashFlow(value: unknown): AffiliateDashFlow {
|
|||||||
bindMismatch: Boolean(source.bindMismatch),
|
bindMismatch: Boolean(source.bindMismatch),
|
||||||
bound: Boolean(source.bound),
|
bound: Boolean(source.bound),
|
||||||
boundAccount: String(source.boundAccount || '').trim(),
|
boundAccount: String(source.boundAccount || '').trim(),
|
||||||
roleName: String(
|
roleName: String(source.roleName || rawResult?.role_name || raw?.role_name || '').trim(),
|
||||||
source.roleName || rawResult?.role_name || raw?.role_name || '',
|
|
||||||
).trim(),
|
|
||||||
gameChannel: String(
|
gameChannel: String(
|
||||||
source.gameChannel || rawResult?.game_channel || raw?.game_channel || '',
|
source.gameChannel || rawResult?.game_channel || raw?.game_channel || '',
|
||||||
).trim(),
|
).trim(),
|
||||||
|
|||||||
Reference in New Issue
Block a user