|
|
@ -106,8 +106,6 @@ public class MailHttpHelper extends MailHelper{
|
|
|
|
str.append(s);
|
|
|
|
str.append(s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}catch (Exception e){
|
|
|
|
}catch (Exception e){
|
|
|
|
map.clear();
|
|
|
|
|
|
|
|
map.put("异常信息",e.getMessage());
|
|
|
|
|
|
|
|
log.error("解析邮件文本失败",e);
|
|
|
|
log.error("解析邮件文本失败",e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
@ -121,23 +119,16 @@ public class MailHttpHelper extends MailHelper{
|
|
|
|
map.put("省市",msg);
|
|
|
|
map.put("省市",msg);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
Boolean degreeExist = Boolean.FALSE;
|
|
|
|
|
|
|
|
for (String degree : degreeList) {
|
|
|
|
for (String degree : degreeList) {
|
|
|
|
if (msg.contains(degree)){
|
|
|
|
if (msg.contains(degree)){
|
|
|
|
degreeExist = Boolean.TRUE;
|
|
|
|
|
|
|
|
map.put("现有学历",msg);
|
|
|
|
map.put("现有学历",msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!degreeExist){
|
|
|
|
|
|
|
|
throw new RuntimeException("学历格式不正确");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
|
int startIndex = msg.indexOf("1");
|
|
|
|
int startIndex = msg.indexOf("1");
|
|
|
|
if (startIndex >= 0 && msg.length() - startIndex >= 11){
|
|
|
|
if (startIndex >= 0 && msg.length() - startIndex >= 11){
|
|
|
|
map.put("手机号码",msg.substring(startIndex,startIndex + 11));
|
|
|
|
map.put("手机号码",msg.substring(startIndex,startIndex + 11));
|
|
|
|
}else {
|
|
|
|
|
|
|
|
throw new RuntimeException("电话号码格式不正确");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|