private void OrderTimeoutdalRun(object o)
        {
            if (_ordertimeoutdal == null)
            {
                _ordertimeoutdal = new JushOrderTimeOutRemind_DAL();
            }
            list = _ordertimeoutdal.OrderOutList();
            if (list.Count > 0)
            {
                List<string> list_users = new List<string>();
                list.ForEach(z => list_users.Add(z.UserId.ToString().DESEncrypt().StringToMd5().Md532SubString()));
                //JPushClient client = new JPushClient(Config.PushApp_key, Config.PushMaster_secret);
                PushPayload payload = new PushPayload();

                payload.platform = Platform.all();
                payload.audience = Audience.s_alias(list_users.ToArray());

                payload.notification = new Notification().setAlert(Config.JushOrderTimeOutRemindMsg).setAndroid(new AndroidNotification().AddExtra("key", Config.JushGoPageOrder)).setIos(new IosNotification().AddExtra("key", Config.JushGoPageOrder));
                try
                {
                    client.SendPush(payload);
                    //记录日志
                    Config.PushLogAPP("APP订单超时推送提醒", list_users.ListToStrings(), Config.JushOrderTimeOutRemindMsg);
                }
                catch (Jpush.api.common.APIRequestException ee)
                {
                    string.Format("\r\n>>>APP订单超时推送提醒 推送异常:{0},time:{1}",
                    ee.Message,
                    DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
                    ).WriteLog("ERROR");
                }
            }
        }
 private void AddOrderTimeoutdalRun(object o)
 {
     if (_glb == null)
     {
         _glb = new JushGoldBookRemind_DAL();
     }
     if (payload == null)
     {
         payload = new PushPayload();
     }
     list = _glb.GoldAddList();
     if (list.Count > 0)
     {
         List<string> list_users = new List<string>();
         list.ForEach(z => list_users.Add(z.UsedId.ToString().DESEncrypt().StringToMd5().Md532SubString()));
         //PushPayload payload = new PushPayload();
         payload.platform = Platform.all();
         payload.audience = Audience.s_alias(list_users.ToArray());
         payload.notification = new Notification().setAlert(Config.JushAddGoldBookRemindRemingMsg).setAndroid(new AndroidNotification().AddExtra("key", Config.JushGoPageGoldBook)).setIos(new IosNotification().AddExtra("key", Config.JushGoPageGoldBook));
         try
         {
             client.SendPush(payload);
             //记录日志
             Config.PushLogAPP("APP获取到优惠卷提醒", list_users.ListToStrings(), Config.JushAddGoldBookRemindRemingMsg);
         }
         catch (Jpush.api.common.APIRequestException ee)
         {
             string.Format("\r\n>>>APP获取到优惠卷提醒 推送异常:{0},time:{1}",
             ee.Message,
             DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
             ).WriteLog("ERROR");
         }
     }
 }