Skip to content

Commit

Permalink
fix: MicroBlogData.picture
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 15, 2021
1 parent 340ebbe commit 6fbab03
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ internal object ArknightsSubscriber : CoroutineScope by ArknightsHelperPlugin.ch
logger.warning({ "订阅器 MicroBlogData 数据加载失败" }, it)
}

val new = (MicroBlogData.all + MicroBlogData.picture).filterNot { it.id in history }
val new = MicroBlogData.all.filterNot { it.id in history } + MicroBlogData.picture.filterNot {
it.id > history.maxOrNull() ?: 0
}
if (new.isNotEmpty()) {
logger.info { "明日方舟 微博 订阅器 捕捉到结果" }
new.sortedBy { it.id }.forEach { blog ->
Expand Down

0 comments on commit 6fbab03

Please sign in to comment.