34 lines
809 B
C#
34 lines
809 B
C#
using Quartz;
|
|
using System;
|
|
using WX.CRM.Common;
|
|
|
|
namespace WX.CRM.CRMServices.WeiXin
|
|
{
|
|
/// <summary>
|
|
/// 订单推送调度
|
|
/// </summary>
|
|
public class SzzyOrderPushJob : IJob
|
|
{
|
|
static bool isRuning = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (isRuning)
|
|
return;
|
|
isRuning = true;
|
|
try
|
|
{
|
|
LogHelper.Info("SzzyOrderPushJob,推送订单到前端");
|
|
new SzzyOrderPush().StartPush();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
WX.CRM.Common.LogHelper.Error("SzzyOrderPushJob出现错误: " + e.ToString());
|
|
}
|
|
finally
|
|
{
|
|
isRuning = false;
|
|
}
|
|
}
|
|
}
|
|
}
|