yangdamao 2 years ago
parent
commit
a47edd81b1

+ 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())