38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using AY.CRM.BLL.Wx;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using WX.CRM.Common;
|
|
|
|
namespace WeChatServerServices.WxJob
|
|
{
|
|
public class Wx_AliveHandle
|
|
{
|
|
/// <summary>
|
|
/// 推送最近在线6分钟的用户到推广服务器
|
|
/// </summary>
|
|
public void SendWx_AliveToPromotion()
|
|
{
|
|
DateTime time = DateTime.Now.AddMinutes(-6);
|
|
List<string> aliveList = new WX_ALIVE_BL().GetWx_AliveByLastTime(time);
|
|
foreach (string item in aliveList)
|
|
{
|
|
#region 数据同步
|
|
try
|
|
{
|
|
|
|
//web_push_updateServiceOnline user = new web_push_updateServiceOnline()
|
|
//{
|
|
// UserName = item
|
|
//};
|
|
//new PushDataServices().SendData<web_push_updateServiceOnline>(user, "ZQZX", "web_push_updateServiceOnline");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error("同步到投顾错误:" + ex.ToString());
|
|
}
|
|
#endregion
|
|
}
|
|
}
|
|
}
|
|
}
|