public Task CheckIP(Models.Job job, int mintue) { return(Task.Run(() => { if (job.IPStatus == 0) { return; } var CkIP = _accessor.CheckIP(job, mintue); if (!CkIP.Ok) { EmailHelper.Send(job.Emails, "预警触发通知", $@" <br> <b>【IP异常】触发预警 </b> <p>IP重复率预警值:{job.IPRate * 100 + "%"} 当前值:{CkIP.Value.ToDouble() * 100 + "%"} </p> <p>任务标题:{job.Title}</p> <p>监控节点:{job.Servers}</p> <p>监控频率:{ParseJobCronString(job.CronLike)}</p> <p>IP白名单:{job.IPWhiteList}</p> <p>时间段:{CkIP.Time}</p> "); } })); }