style: auto format
This commit is contained in:
parent
fdbf9a64e4
commit
b9cb67cdf5
|
|
@ -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 ? '[史低]' : ''} `;
|
||||
}
|
||||
if (item.price.initial) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue