邮箱采集增加日志

release
zhenghaiyang@ele-cloud.com 2 years ago
parent 99d6722729
commit bb59ce2756
  1. 4
      dxhy-core/src/main/java/com/dxhy/core/task/SnEmailGatherTask.java

@ -151,9 +151,11 @@ public class SnEmailGatherTask {
}
gatherLogVo.setMsgUid(uid);
boolean isContainerAttachment = EmailParseUtils.isContainAttachment(msg);
log.debug("是否有附件: "+isContainerAttachment);
if(isContainerAttachment){
List<Map<String, String>> mapList = Lists.newArrayList();
EmailParseUtils.saveAttachment(msg, mapList);
log.debug("获取附件的数量:"+mapList.size());
for (Map<String, String> map : mapList) {
map.put("emailName",emailName);
String pdfStream = map.get("pdfStream");
@ -184,6 +186,8 @@ public class SnEmailGatherTask {
throw new RuntimeException(e);
}
}else {
log.debug("山能OCR识别失败------");
}
}
}

Loading…
Cancel
Save