mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +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) {
|
if (i === data.length - 1 && list.length > 0) {
|
||||||
list[list.length - 1]['totalCount'] = i - preIndex;
|
list[list.length - 1]['totalCount'] = i - preIndex;
|
||||||
if (lastFive === null) {
|
|
||||||
lastFive = data.length;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
@ -223,7 +220,8 @@ export async function anaylizeGachaLog(uid) {
|
||||||
if (upCount > 0) avgUp = ((totalCount - lastFive) / upCount).toFixed(1);
|
if (upCount > 0) avgUp = ((totalCount - lastFive) / upCount).toFixed(1);
|
||||||
}
|
}
|
||||||
if (!lastFive && fiveStars === 0) {
|
if (!lastFive && fiveStars === 0) {
|
||||||
lastFive = '-';
|
if (totalCount > 0) lastFive = totalCount;
|
||||||
|
else lastFive = '-';
|
||||||
}
|
}
|
||||||
result.push({
|
result.push({
|
||||||
name,
|
name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue