feat: show next season pass on listings

This commit is contained in:
yml2213
2026-08-28 18:28:59 +08:00
parent 006f93a0e7
commit 74d1518b66
@@ -158,6 +158,10 @@ export function getListingChips(item: Listing): ListingDisplayChip[] {
if (readAssetString(item, 'all_hero') === '是') {
chips.push({ label: '全英雄', value: '是' })
}
const nextSeasonPass = readAssetString(item, 'next_season_pass')
if (nextSeasonPass === '购买' || nextSeasonPass === '不购买') {
chips.push({ label: '下赛季通行证', value: nextSeasonPass })
}
return chips.filter(chip => chip.value)
}