From 559f1815331a263047608cf54e45f1ab103d7d16 Mon Sep 17 00:00:00 2001 From: YXY <932687738@qq.com> Date: Sat, 15 Apr 2023 12:05:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/flyingbook/mail/MailHttpHelper.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mail/MailHttpHelper.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mail/MailHttpHelper.java index 250d409..5190c15 100644 --- a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mail/MailHttpHelper.java +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mail/MailHttpHelper.java @@ -106,8 +106,6 @@ public class MailHttpHelper extends MailHelper{ str.append(s); } }catch (Exception e){ - map.clear(); - map.put("异常信息",e.getMessage()); log.error("解析邮件文本失败",e); } return map; @@ -121,23 +119,16 @@ public class MailHttpHelper extends MailHelper{ map.put("省市",msg); break; case 3: - Boolean degreeExist = Boolean.FALSE; for (String degree : degreeList) { if (msg.contains(degree)){ - degreeExist = Boolean.TRUE; map.put("现有学历",msg); } } - if (!degreeExist){ - throw new RuntimeException("学历格式不正确"); - } break; case 4: int startIndex = msg.indexOf("1"); if (startIndex >= 0 && msg.length() - startIndex >= 11){ map.put("手机号码",msg.substring(startIndex,startIndex + 11)); - }else { - throw new RuntimeException("电话号码格式不正确"); } break; case 5: