From 23297de3096af6258411396ffc1e45b65e8cf838 Mon Sep 17 00:00:00 2001 From: luoyang Date: Tue, 6 Aug 2019 11:47:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20mailccs=20=E4=B8=BAnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../payment/manage/notice/core/impls/MailServiceImp.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0a3d855d2..29cdc14b8 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 4.0.0 manage - 1.0.36 + 1.0.37 UTF-8 diff --git a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java index 76801d518..807446c6c 100644 --- a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java @@ -157,7 +157,9 @@ public class MailServiceImp implements MailService { List mailClients = new ArrayList<>(); JSONObject mailClient = new JSONObject(); mailClient.put("mailto", mailTos); - mailClient.put("mailcc", mailCcs); + if (StringUtils.isNotBlank(mailCcs)) { + mailClient.put("mailcc", mailCcs); + } mailClients.add(mailClient); noticeBean.setMailClients(mailClients); noticeBean.setContent(content);