|
|
|
@@ -60,9 +60,12 @@ public class SendEmailServiceImpl implements MsgSendService { |
|
|
|
WxMsgValidationcodeModel wxMsgModel = modelList.get(0); |
|
|
|
|
|
|
|
String msg = wxMsgModel.getContent(); |
|
|
|
for (Map.Entry<String, String> entry : mailMsg.getDynamicContentMap().entrySet()) { |
|
|
|
msg = msg.replace("{"+entry.getKey()+"}", entry.getValue()); |
|
|
|
if(mailMsg.getDynamicContentMap() != null){ |
|
|
|
for (Map.Entry<String, String> entry : mailMsg.getDynamicContentMap().entrySet()) { |
|
|
|
msg = msg.replace("{"+entry.getKey()+"}", entry.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(wxMsgModel.getEmailBgImg())){ |
|
|
|
msg = msg.replace("{bg}", wxMsgModel.getEmailBgImg()); |
|
|
|
} |
|
|
|
|