refactor: 日志修改
This commit is contained in:
parent
efe70e2a42
commit
494f58abac
|
@ -37,7 +37,7 @@ public class DingNoticeSender extends AbstractNoticeSender {
|
||||||
if (CollectionUtils.isEmpty(phoneList)) {
|
if (CollectionUtils.isEmpty(phoneList)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LogUtil.info("钉钉收件人地址: " + phoneList);
|
LogUtil.info("钉钉收件人地址: {}", phoneList);
|
||||||
at.setAtMobiles(phoneList);
|
at.setAtMobiles(phoneList);
|
||||||
request.setAt(at);
|
request.setAt(at);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class LarkNoticeSender extends AbstractNoticeSender {
|
||||||
if (CollectionUtils.isEmpty(collect)) {
|
if (CollectionUtils.isEmpty(collect)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LogUtil.info("飞书收件人: ", userIds);
|
LogUtil.info("飞书收件人: {}", userIds);
|
||||||
context += StringUtils.join(collect, " ");
|
context += StringUtils.join(collect, " ");
|
||||||
LarkClient.send(messageDetail.getWebhook(), context);
|
LarkClient.send(messageDetail.getWebhook(), context);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class MailNoticeSender extends AbstractNoticeSender {
|
||||||
}
|
}
|
||||||
List<String> emails = super.getUserEmails(noticeModel, userIds);
|
List<String> emails = super.getUserEmails(noticeModel, userIds);
|
||||||
String[] users = emails.toArray(new String[0]);
|
String[] users = emails.toArray(new String[0]);
|
||||||
LogUtil.info("收件人地址: " + emails);
|
LogUtil.info("收件人地址: {}", emails);
|
||||||
helper.setText(context, true);
|
helper.setText(context, true);
|
||||||
helper.setTo(users);
|
helper.setTo(users);
|
||||||
javaMailSender.send(mimeMessage);
|
javaMailSender.send(mimeMessage);
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class WeComNoticeSender extends AbstractNoticeSender {
|
||||||
if (CollectionUtils.isEmpty(phoneLists)) {
|
if (CollectionUtils.isEmpty(phoneLists)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LogUtil.info("企业微信收件人: ", phoneLists);
|
LogUtil.info("企业微信收件人: {}", phoneLists);
|
||||||
try {
|
try {
|
||||||
WxChatbotClient.send(messageDetail.getWebhook(), message);
|
WxChatbotClient.send(messageDetail.getWebhook(), message);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue