diff --git a/src/main/kotlin/com/lanyuanxiaoyao/digtal/market/runner/PushRunner.kt b/src/main/kotlin/com/lanyuanxiaoyao/digtal/market/runner/PushRunner.kt index e6a165a..ab104ee 100644 --- a/src/main/kotlin/com/lanyuanxiaoyao/digtal/market/runner/PushRunner.kt +++ b/src/main/kotlin/com/lanyuanxiaoyao/digtal/market/runner/PushRunner.kt @@ -23,7 +23,7 @@ class PushRunner : Runner { ) } try { - DingtalkSender().send("近期要闻", mapOf("articles" to articles)) + DingtalkSender().send("近期要闻", mapOf("articles" to articles.take(10))) articles.forEach { articleRepository.updatePushedById(it.id, true) } } catch (e: RuntimeException) { logger.error("发送失败", e)