diff --git a/src/main/java/net/lamgc/cgj/bot/BotCommandProcess.java b/src/main/java/net/lamgc/cgj/bot/BotCommandProcess.java index 3ff9e10..393edf6 100644 --- a/src/main/java/net/lamgc/cgj/bot/BotCommandProcess.java +++ b/src/main/java/net/lamgc/cgj/bot/BotCommandProcess.java @@ -10,7 +10,7 @@ import net.lamgc.cgj.bot.cache.CacheStoreCentral; import net.lamgc.cgj.bot.cache.JsonRedisCacheStore; import net.lamgc.cgj.bot.event.BufferMessageEvent; import net.lamgc.cgj.bot.sort.PreLoadDataAttribute; -import net.lamgc.cgj.bot.sort.PreLoadDataComparator; +import net.lamgc.cgj.bot.sort.PreLoadDataAttributeComparator; import net.lamgc.cgj.pixiv.PixivDownload; import net.lamgc.cgj.pixiv.PixivDownload.PageQuality; import net.lamgc.cgj.pixiv.PixivSearchLinkBuilder; @@ -338,7 +338,7 @@ public class BotCommandProcess { .getAsJsonObject(searchArea.jsonKey).getAsJsonArray("data"); ArrayList illustsList = new ArrayList<>(); illustsArray.forEach(illustsList::add); - illustsList.sort(new PreLoadDataComparator(PreLoadDataAttribute.LIKE)); + illustsList.sort(new PreLoadDataAttributeComparator(PreLoadDataAttribute.BOOKMARK)); log.debug("已找到与 {} 相关插图信息({}):", content, searchArea.name().toLowerCase()); int count = 1; diff --git a/src/main/java/net/lamgc/cgj/bot/sort/PreLoadDataComparator.java b/src/main/java/net/lamgc/cgj/bot/sort/PreLoadDataAttributeComparator.java similarity index 91% rename from src/main/java/net/lamgc/cgj/bot/sort/PreLoadDataComparator.java rename to src/main/java/net/lamgc/cgj/bot/sort/PreLoadDataAttributeComparator.java index 369a2c5..7c82031 100644 --- a/src/main/java/net/lamgc/cgj/bot/sort/PreLoadDataComparator.java +++ b/src/main/java/net/lamgc/cgj/bot/sort/PreLoadDataAttributeComparator.java @@ -10,11 +10,11 @@ import java.util.Comparator; /** * 收藏数比较器 */ -public class PreLoadDataComparator implements Comparator { +public class PreLoadDataAttributeComparator implements Comparator { private final PreLoadDataAttribute attribute; - public PreLoadDataComparator(PreLoadDataAttribute attribute) { + public PreLoadDataAttributeComparator(PreLoadDataAttribute attribute) { this.attribute = attribute; }