43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using WX.CRM.BLL.Csvr;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.CRMServices.ServicesModel;
|
|
using WX.CRM.Model.Entity;
|
|
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
|
|
{
|
|
/// <summary>
|
|
/// 获取深海捷录音
|
|
/// </summary>
|
|
public class CtiGetCdrJob : IJob
|
|
{
|
|
static bool isRuning = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (isRuning)
|
|
return;
|
|
isRuning = true;
|
|
try
|
|
{
|
|
// Common.LogHelper.Error("深海捷数据抓取服务开始 ");
|
|
new CtiGetCdr().DowSHJData();
|
|
}
|
|
catch (Exception e)//获取远程录音数据失败
|
|
{
|
|
WX.CRM.Common.LogHelper.Error("深海捷数据抓取服务: " + e);
|
|
}
|
|
finally
|
|
{
|
|
isRuning = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|