From 75d052bd0cb5865b57cad9dfcf7d09b0b9a2f1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=96=87=E8=B1=AA?= <980287353@qq.com> Date: Wed, 28 Feb 2024 09:36:21 +0800 Subject: [PATCH] =?UTF-8?q?perf=EF=BC=9A=E9=92=89=E9=92=89=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E9=80=9A=E7=9F=A5=E7=9A=84=E5=86=85=E5=AE=B9=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tiesheng/platform/config/ding/PlatformDingConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/springboot-platform/src/main/java/com/tiesheng/platform/config/ding/PlatformDingConfig.java b/springboot-platform/src/main/java/com/tiesheng/platform/config/ding/PlatformDingConfig.java index afcc2ef..dfb8eaf 100644 --- a/springboot-platform/src/main/java/com/tiesheng/platform/config/ding/PlatformDingConfig.java +++ b/springboot-platform/src/main/java/com/tiesheng/platform/config/ding/PlatformDingConfig.java @@ -268,7 +268,7 @@ public class PlatformDingConfig { * @param userIds * @return */ - public DingResponse messageNotification(String service, String title, String content, String actionUrl, List userIds) { + public DingResponse messageNotification(String service, String title, String markdown, String actionUrl, List userIds) { if (CollUtil.isEmpty(userIds)) { return null; @@ -278,7 +278,7 @@ public class PlatformDingConfig { JSONObject actionCard = new JSONObject(); actionCard.set("title", title); - actionCard.set("markdown", "### " + title + "\n" + content); + actionCard.set("markdown", markdown); actionCard.set("single_title", "点击查看"); actionCard.set("single_url", actionUrl);