feat: 修复排名信息显示错误的问题
All checks were successful
Egg CI/CD / build-image (push) Successful in 48s
Egg CI/CD / deploy (push) Successful in 28s

This commit is contained in:
zhaoyingbo 2024-06-17 02:45:56 +00:00
parent fe3b08bae4
commit 2f682b6a18

View File

@ -59,7 +59,7 @@ const sendRank = async () => {
overHandred.sort((a: any, b: any) => b.voteCount - a.voteCount);
const index = overHandred.findIndex((v) => v.teamName === "聚光灯");
const diff = overHandred[0].voteCount - overHandred[index].voteCount;
const selfContent = `当前票数:${list[index].voteCount},排名:${
const selfContent = `当前票数:${overHandred[index].voteCount},排名:${
index + 1
}${diff}`;