修复对对碰奖品参考价显示
This commit is contained in:
parent
c785ead9d7
commit
c8e49ab3b4
@ -690,6 +690,8 @@ function normalizeRewards(list, playType = 'normal') {
|
|||||||
weight: Number(i.weight) || 0,
|
weight: Number(i.weight) || 0,
|
||||||
boss: detectBoss(i),
|
boss: detectBoss(i),
|
||||||
min_score: Number(i.min_score) || 0, // Extract min_score
|
min_score: Number(i.min_score) || 0, // Extract min_score
|
||||||
|
drop_quantity: Number(i.drop_quantity) || 1,
|
||||||
|
product_price: Number(i.price_snapshot_cents ?? i.product_price ?? i.price ?? i.reference_price) || 0,
|
||||||
level: levelToAlpha(i.prize_level ?? i.level ?? (detectBoss(i) ? 'BOSS' : '赏'))
|
level: levelToAlpha(i.prize_level ?? i.level ?? (detectBoss(i) ? 'BOSS' : '赏'))
|
||||||
}))
|
}))
|
||||||
const total = items.reduce((acc, it) => acc + (it.weight > 0 ? it.weight : 0), 0)
|
const total = items.reduce((acc, it) => acc + (it.weight > 0 ? it.weight : 0), 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user