Skip to content

Commit

Permalink
style: format code [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 5, 2024
1 parent ebc4ca2 commit e871a71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion model/mcGachaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ export default class mcGachaCard {
}
eachUpGoldCost =
Math.floor(
(eachUpGoldCost / (goldCardRecord.filter((item) => item.isUpItem).length)) * 100
(eachUpGoldCost /
goldCardRecord.filter((item) => item.isUpItem).length) *
100
) / 100
}
// goldCount - up 数量=非 up 数量
Expand Down
8 changes: 4 additions & 4 deletions model/mcGachaData.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default class mcGachaData {
list: oldGachaDataInUniform.list || [],
}

let existingIds = new Set(gachaDataInUniform.list.map(item => item.id))
let existingIds = new Set(gachaDataInUniform.list.map((item) => item.id))

kuroLogger.debug(
`准备转换 QQ ${qq} 的抽卡记录到 WWGF 格式: ${JSON.stringify(
Expand Down Expand Up @@ -387,11 +387,11 @@ export default class mcGachaData {
// 在保存到本地之前,对合并后的记录进行排序, 按照 gacha_id 从小到大, id 从大到小排序
gachaDataInUniform.list.sort((a, b) => {
if (a.gacha_id !== b.gacha_id) {
return parseInt(a.gacha_id) - parseInt(b.gacha_id);
return parseInt(a.gacha_id) - parseInt(b.gacha_id)
} else {
return parseInt(b.id) - parseInt(a.id);
return parseInt(b.id) - parseInt(a.id)
}
});
})

// 保存到本地
try {
Expand Down

0 comments on commit e871a71

Please sign in to comment.