This commit is contained in:
2025-12-03 19:50:23 +08:00
parent b368ba0159
commit f026b9f9fd
2 changed files with 5 additions and 7 deletions

View File

@@ -68,9 +68,9 @@
NSInteger topCount = MIN(3, weakSelf.allCharacters.count);
for (NSInteger i = 0; i < topCount; i++) {
KBCharacter *c = weakSelf.allCharacters[i];
NSInteger rank = (c.rank > 0) ? c.rank : (i + 1);
// NSInteger rank = (c.rank > 0) ? c.rank : (i + 1);
NSString *title = c.characterName ?: @"";
[topItems addObject:@{ @"title": title, @"rank": @(rank) }];
[topItems addObject:@{ @"title": title, @"rank": @(i + 1) }];
}
if (topItems.count > 0) {
[weakSelf.topThreeView configWithItems:topItems];