From df6a193742c3efaf1f7c408bff7519ff6ef45649 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Fri, 12 Aug 2016 21:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=AD=A6=E9=82=AE=E4=BB=B6,=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=BB=84=E5=80=BC,=E4=BB=8Eenum=E5=80=BC=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=8F=8F=E8=BF=B0=E7=9A=84=E5=80=BC;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xxl/job/admin/core/thread/JobMonitorHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java index de42b1ca..deffff36 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java @@ -1,5 +1,6 @@ package com.xxl.job.admin.core.thread; +import com.xxl.job.admin.core.constant.Constants; import com.xxl.job.admin.core.model.XxlJobInfo; import com.xxl.job.admin.core.model.XxlJobLog; import com.xxl.job.admin.core.util.DynamicSchedulerUtil; @@ -58,7 +59,8 @@ public class JobMonitorHelper { Set emailSet = new HashSet(Arrays.asList(info.getAlarmEmail().split(","))); for (String email: emailSet) { String title = "《调度监控报警-任务调度中心XXL-JOB》"; - String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", info.getJobGroup(), info.getJobDesc()); + String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", + Constants.JobGroupEnum.match(info.getJobGroup()).getDesc(), info.getJobDesc()); MailUtil.sendMail(email, title, content, false, null); } }