diff --git a/lib/routes/xiaoheihe/discount.js b/lib/routes/xiaoheihe/discount.js index 5968ab6a5..d2722fae6 100644 --- a/lib/routes/xiaoheihe/discount.js +++ b/lib/routes/xiaoheihe/discount.js @@ -45,7 +45,7 @@ module.exports = async (ctx) => { description += `折扣力度: ${(100 - item.price.discount) / 10}折
`; } if (item.price.initial && item.price.discount) { - const current = Math.round(item.price.initial * (100 - item.price.discount) / 100); + const current = Math.round((item.price.initial * (100 - item.price.discount)) / 100); description += `当前价格: ${current}${item.price.discount === item.price.lowest_discount ? '[史低]' : ''}  `; } if (item.price.initial) {