refactor: 日志修改
This commit is contained in:
parent
efe70e2a42
commit
494f58abac
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public class MailNoticeSender extends AbstractNoticeSender {
|
|||
}
|
||||
List<String> 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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue