From b9cb67cdf50d58c28d9a7b93c7ad2dd8af9baa80 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 13 Oct 2020 10:37:48 +0000 Subject: [PATCH] style: auto format --- lib/routes/xiaoheihe/discount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {