TG.WXCRM.V4/CRMServices/CRMJobs/GetJuejinMobileJob.cs

34 lines
838 B
C#

using WX.CRM.Common;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WX.CRM.CRMServices.CRMJobs
{
public class GetJuejinMobileJob : IJob
{
static bool isRuning = false;
public void Execute(JobExecutionContext context)
{
if (isRuning)
return;
isRuning = true;
try
{
new Juejin.GetJuejinMobileJob().Execute();
}
catch (Exception e)
{
WX.CRM.Common.LogHelper.Error(string.Concat("WX.CRM.CRMServices.Juejin.GetJuejinMobileJob().Execute() ", e.Message, e.StackTrace));
}
finally
{
isRuning = false;
}
}
}
}