32 lines
695 B
C#
32 lines
695 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WX.CRM.Common;
|
|
using Quartz;
|
|
using WX.CRM.CRMServices.PkgSms;
|
|
|
|
namespace WX.CRM.CRMServices.CRMJobs
|
|
{
|
|
public class CallRecordSyncJob : IJob
|
|
{
|
|
private static bool recordPush = false;
|
|
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (recordPush)
|
|
return;
|
|
recordPush = true;
|
|
try
|
|
{
|
|
new SyncRecord().Push();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error("录音推送:" + ex);
|
|
}
|
|
}
|
|
}
|
|
}
|