feat(listing): 发布新增「是否解锁德穆兰」必填项,首页优先替换全英雄展示
This commit is contained in:
@@ -160,8 +160,11 @@ export function getListingChips(item: PublicListingItem): ListingDisplayChip[] {
|
||||
if (canChangeGameName === '是' || canChangeGameName === '否') {
|
||||
chips.push({ label: '可修改游戏名', value: canChangeGameName })
|
||||
}
|
||||
// 全英雄为必选项,仅在号主勾选「是」时展示
|
||||
if (readAssetString(item, 'all_hero') === '是') {
|
||||
// 全英雄为必选项,仅在号主勾选「是」时展示;解锁德穆兰展示优先级更高,命中时替换「全英雄」。
|
||||
const allHero = readAssetString(item, 'all_hero')
|
||||
if (readAssetString(item, 'unlock_demulan') === '是') {
|
||||
chips.push({ label: '解锁德穆兰', value: '是' })
|
||||
} else if (allHero === '是') {
|
||||
chips.push({ label: '全英雄', value: '是' })
|
||||
}
|
||||
const nextSeasonPass = readAssetString(item, 'next_season_pass')
|
||||
|
||||
Reference in New Issue
Block a user