[Fix] BotCommandProcess 修复了通过缓存获取排行榜时排行榜从第2名开始读取的bug;

[Update] MiraiMain, MiraiMessageSender, MiraiMessageEvent 更新Mirai框架(0.32.0 -> 0.39.4)并适配框架新版本的变动;
This commit is contained in:
2020-04-28 00:19:24 +08:00
parent d3c1975722
commit dbc9f4c90b
5 changed files with 12 additions and 12 deletions

View File

@ -786,7 +786,7 @@ public class BotCommandProcess {
}
if (Objects.isNull(result)) {
result = rankingCache.getCache(requestSign, start, range);
result = rankingCache.getCache(requestSign, start - 1, range);
log.debug("RequestSign [{}] 缓存命中.", requestSign);
}
log.debug("Result-Length: {}", result.size());