From 36ae0a290bc14d8122ae605ba5f7b4e0d64d8130 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 26 Aug 2021 11:16:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=97=A5=E5=BF=97=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/notice/sender/impl/DingNoticeSender.java | 2 +- .../io/metersphere/notice/sender/impl/LarkNoticeSender.java | 2 +- .../io/metersphere/notice/sender/impl/MailNoticeSender.java | 2 +- .../io/metersphere/notice/sender/impl/WeComNoticeSender.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java index ea4a6e6c51..3e96ca8e71 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java @@ -37,7 +37,7 @@ public class DingNoticeSender extends AbstractNoticeSender { if (CollectionUtils.isEmpty(phoneList)) { return; } - LogUtil.info("钉钉收件人地址: " + phoneList); + LogUtil.info("钉钉收件人地址: {}", phoneList); at.setAtMobiles(phoneList); request.setAt(at); try { diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java index 689e4fc4b8..83e8955928 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java @@ -32,7 +32,7 @@ public class LarkNoticeSender extends AbstractNoticeSender { if (CollectionUtils.isEmpty(collect)) { return; } - LogUtil.info("飞书收件人: ", userIds); + LogUtil.info("飞书收件人: {}", userIds); context += StringUtils.join(collect, " "); LarkClient.send(messageDetail.getWebhook(), context); } diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java index b534b430a5..e9a16b8f50 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java @@ -47,7 +47,7 @@ public class MailNoticeSender extends AbstractNoticeSender { } List emails = super.getUserEmails(noticeModel, userIds); String[] users = emails.toArray(new String[0]); - LogUtil.info("收件人地址: " + emails); + LogUtil.info("收件人地址: {}", emails); helper.setText(context, true); helper.setTo(users); javaMailSender.send(mimeMessage); diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java index 6e52ccd323..018a118be3 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java @@ -32,7 +32,7 @@ public class WeComNoticeSender extends AbstractNoticeSender { if (CollectionUtils.isEmpty(phoneLists)) { return; } - LogUtil.info("企业微信收件人: ", phoneLists); + LogUtil.info("企业微信收件人: {}", phoneLists); try { WxChatbotClient.send(messageDetail.getWebhook(), message); } catch (IOException e) {