using Quartz; using System; namespace WX.CRM.CRMServices.TS { public class TSMsgSendJob : IJob { static bool isRuning = false; public void Execute(JobExecutionContext context) { if (isRuning) return; isRuning = true; try { //LogHelper.Info("-------------TSSendResJob,推送群发信息到手机start-------------"); new TSMsgSend().StartPush(); } catch (Exception e) { WX.CRM.Common.LogHelper.Error("TSMsgSendJob: " + e.ToString()); } finally { //LogHelper.Info("-------------TSSendResJob,推送群发到手机end-------------"); isRuning = false; } } } }