style: auto format

This commit is contained in:
GitHub Action 2020-10-13 10:37:48 +00:00
parent fdbf9a64e4
commit b9cb67cdf5
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module.exports = async (ctx) => {
description += `折扣力度: ${(100 - item.price.discount) / 10}折<br/>`;
}
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 ? '[史低]' : ''}&nbsp;&nbsp;`;
}
if (item.price.initial) {