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

34 lines
814 B
C#

using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WX.CRM.CRMServices.PkgSms;
namespace WX.CRM.CRMServices.CRMJobs
{
public class DisposeRecoldFileJob : IJob
{
static bool isRuning = false;
public void Execute(JobExecutionContext context)
{
if (isRuning)
return;
isRuning = true;
try
{
new CtiGetCdr().DisposeRecoldFile();
}
catch (Exception e)//获取远程录音数据失败
{
WX.CRM.Common.LogHelper.Error("深海捷错误数据处理: " + e);
}
finally
{
isRuning = false;
}
}
}
}