#最强排行#最高分排行 去除根据uid排序的逻辑,使用角色id进行排序

This commit is contained in:
Kokomi 2022-11-18 03:24:18 +08:00
parent 53e6a209ff
commit 734c0105d7

View File

@ -167,7 +167,6 @@ async function renderCharRankList ({ e, uids, char, mode, groupId }) {
}
tmp._mark = mark?.mark || 0
tmp._dmg = dmg?.avg || 0
tmp._star = 5 - tmp.star
list.push(tmp)
}
}
@ -177,7 +176,7 @@ async function renderCharRankList ({ e, uids, char, mode, groupId }) {
list = lodash.sortBy(list, mode === 'mark' ? '_mark' : '_dmg').reverse()
} else {
title = `#${mode === 'mark' ? '最高分' : '最强'}排行`
list = lodash.sortBy(list, ['uid', '_star', 'id'])
list = lodash.sortBy(list, ['star', 'id']).reverse()
}
const rankCfg = await ProfileRank.getGroupCfg(groupId)