Пример #1
0
        public void Execute(object eventInfo)
        {
            EventInfo e = (EventInfo)eventInfo;

            //清空过期的在线支付订单
            DateTime expireTime1 = DateTime.Now.AddHours(-BSPConfig.ShopConfig.OnlinePayExpire);

            Orders.ClearExpiredOnlinePayOrder(expireTime1);

            //自动收货
            DateTime expireTime2 = DateTime.Now.AddDays(-BSPConfig.ShopConfig.ReceiveExpire);

            Orders.AutoReceiveOrder(expireTime2);

            EventLogs.CreateEventLog(e.Key, e.Title, Environment.MachineName, DateTime.Now);
        }