fix(huya): 优化兑换结果图字段与布局
This commit is contained in:
@@ -661,14 +661,14 @@ export default function HuyaElitePage() {
|
||||
)
|
||||
? recordsTask.result.account_snapshot as Record<string, unknown>
|
||||
: {};
|
||||
const account = accounts.find((item) => item.id === recordsTask?.account_id);
|
||||
const recordKey = String(record.record_id || record.order_id || index);
|
||||
return {
|
||||
key: `huya:${recordsTask?.id || 'records'}:${recordKey}`,
|
||||
goodsName: String(record.prize_name || '未知商品'),
|
||||
goodsPic: String(record.icon || ''),
|
||||
roleName: String(snapshot.game_name || ''),
|
||||
channel: String(snapshot.game_channel || ''),
|
||||
accountName: String(snapshot.uid || recordsTask?.account_uid || snapshot.nickname || recordsTask?.account_nickname || '-'),
|
||||
roleName: String(snapshot.game_name || account?.game_name || ''),
|
||||
channel: String(snapshot.game_channel || account?.game_channel || ''),
|
||||
exchangeTime: String(record.exchange_time_text || ''),
|
||||
statusText: String(record.status_label || '兑换成功'),
|
||||
footerText: '虎牙精英宝典兑换记录凭证 · 数据来自官方兑换记录',
|
||||
|
||||
Reference in New Issue
Block a user