fix: 修复消息太多无法推送
This commit is contained in:
@@ -23,7 +23,7 @@ class PushRunner : Runner {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
DingtalkSender().send("近期要闻", mapOf("articles" to articles))
|
DingtalkSender().send("近期要闻", mapOf("articles" to articles.take(10)))
|
||||||
articles.forEach { articleRepository.updatePushedById(it.id, true) }
|
articles.forEach { articleRepository.updatePushedById(it.id, true) }
|
||||||
} catch (e: RuntimeException) {
|
} catch (e: RuntimeException) {
|
||||||
logger.error("发送失败", e)
|
logger.error("发送失败", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user