30 lines
669 B
C#
30 lines
669 B
C#
using Quartz;
|
|
using System;
|
|
|
|
namespace WeChatServerServices.WxJob
|
|
{
|
|
public class Wx_AliveJob : IJob
|
|
{
|
|
static bool isRuning = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
|
|
if (isRuning)
|
|
return;
|
|
isRuning = true;
|
|
try
|
|
{
|
|
new Wx_AliveHandle().SendWx_AliveToPromotion();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
WX.CRM.Common.LogHelper.Error(string.Concat("Wx_AliveJob出现错误", e.ToString()));
|
|
}
|
|
finally
|
|
{
|
|
isRuning = false;
|
|
}
|
|
}
|
|
}
|
|
}
|