From 4aa98688e43c6844d9ba7cb08cae0269359fc5fd Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 5 Nov 2024 17:56:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A4=AA=E5=A4=9A=E6=97=A0=E6=B3=95=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lanyuanxiaoyao/digtal/market/runner/PushRunner.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)