32 lines
776 B
C#
32 lines
776 B
C#
using Quartz;
|
|
using System;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.CRMServices.WeiXin;
|
|
|
|
namespace WX.CRM.CRMServices.CRMJobs
|
|
{
|
|
public class SummaryMessagePushJob : IJob
|
|
{
|
|
static bool isRuning = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (isRuning)
|
|
return;
|
|
isRuning = true;
|
|
try
|
|
{
|
|
LogHelper.Info("SummaryMessagePushJob,推送订单到前端");
|
|
SummaryMessagePush.Push();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
WX.CRM.Common.LogHelper.Error("SummaryMessagePushJob: " + e.ToString());
|
|
}
|
|
finally
|
|
{
|
|
isRuning = false;
|
|
}
|
|
}
|
|
}
|
|
}
|