master
wangning 6 years ago
parent 27996f9136
commit 0933303468

@ -77,9 +77,7 @@ public class MailServiceImp implements MailService {
@Override @Override
public String sendEmailNotice(String notice_id, String title, List<JSONObject> mailTo, String content) throws URISyntaxException, IOException { public String sendEmailNotice(String notice_id, String title, List<JSONObject> mailTo, String content) throws URISyntaxException, IOException {
List<String> unsubAddress = mailUnsubMapper.getAllAddress(); List<String> unsubAddress = mailUnsubMapper.getAllAddress();
unsubAddress.parallelStream().forEach(p->{ mailTo.removeAll(unsubAddress);
mailTo.remove(p);
});
Document doc = Jsoup.parse(content); Document doc = Jsoup.parse(content);
Elements links = doc.select("a[href]"); Elements links = doc.select("a[href]");
List<JSONObject> files = new ArrayList<JSONObject>(); List<JSONObject> files = new ArrayList<JSONObject>();

Loading…
Cancel
Save