master
wangning 6 years ago
parent 27996f9136
commit 0933303468

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

Loading…
Cancel
Save