mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: lastfivestar
This commit is contained in:
parent
23e34ef89d
commit
b92c557b19
1 changed files with 2 additions and 4 deletions
|
|
@ -204,9 +204,6 @@ export async function anaylizeGachaLog(uid) {
|
|||
}
|
||||
if (i === data.length - 1 && list.length > 0) {
|
||||
list[list.length - 1]['totalCount'] = i - preIndex;
|
||||
if (lastFive === null) {
|
||||
lastFive = data.length;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
|
@ -223,7 +220,8 @@ export async function anaylizeGachaLog(uid) {
|
|||
if (upCount > 0) avgUp = ((totalCount - lastFive) / upCount).toFixed(1);
|
||||
}
|
||||
if (!lastFive && fiveStars === 0) {
|
||||
lastFive = '-';
|
||||
if (totalCount > 0) lastFive = totalCount;
|
||||
else lastFive = '-';
|
||||
}
|
||||
result.push({
|
||||
name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue