mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
style: auto format
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user