using Quartz; using System; using WX.CRM.CRMServices.SoftUser; namespace WX.CRM.CRMServices.CRMJobs { public class GetSoftCustomerJob : IJob { static bool isRuning = false; public void Execute(JobExecutionContext context) { if (isRuning) return; isRuning = true; try { WX.CRM.Common.LogHelper.Error("软件用户信息开始抓取: "); new GetSoftCustomer().getCustomer(); } catch (Exception e) { WX.CRM.Common.LogHelper.Error("软件用户信息抓取: " + e); } finally { isRuning = false; } } } }