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);