yangdamao 2 년 전
부모
커밋
a47edd81b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamApplyServiceImpl.java

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamApplyServiceImpl.java

@@ -821,7 +821,7 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
             Transport.send(msg);
         } catch (Exception e) {
             e.printStackTrace();
-            return false;
+            throw new CustomException("邮件发送失败!请检查邮箱配置");
         }
         iExamApplySiteTimeService.update(new LambdaUpdateWrapper<ExamApplySiteTime>()
                 .in(ExamApplySiteTime::getId, bo.getIds())