/// <summary> /// 查询竞彩足球比赛结果 /// </summary> public static List<JCZQ_MatchResult> QueryJCZQMatchResult() { try { var db = RedisHelper.DB_Match; var fullKey = string.Format("{0}_{1}", "JCZQ", RedisKeys.Key_MatchResult_List); var json = db.StringGetAsync(fullKey).Result; var resultList = JsonHelper.Deserialize<List<JCZQ_MatchResult>>(json); return resultList; } catch (Exception ex) { writerLog.ErrrorLog("RedisMatchBusiness-QueryJCZQMatchResult", ex); return new List<JCZQ_MatchResult>(); } }
/// <summary> /// 多线程执行拆票(普通投注) /// </summary> public static void DoSplitOrderTicketWithThread(RedisWaitTicketOrder order) { if (order == null || order.RunningOrder == null || order.AnteCodeList == null || order.AnteCodeList.Count <= 0) { return; } ThreadPool.QueueUserWorkItem((o) => { try { DoSplitOrderTicket(o as RedisWaitTicketOrder); } catch (Exception ex) { writerLog.ErrrorLog("Redis_DoSplitOrderTicket-DoSplitOrderTicketWithThread", ex); } }, order); }