Beispiel #1
0
        /// <summary>
        /// 查询禁赛列表
        /// </summary>
        /// <returns></returns>
        public DisableMatchConfigInfoCollection QueryDisableMatchConfigList(string gameCode)
        {
            var collection = new DisableMatchConfigInfoCollection();

            switch (gameCode.ToUpper())
            {
            case "BJDC":
                var manager_BJDC = new BJDCMatchManager();
                collection.AddRange(manager_BJDC.QueryBJDC_DisableMatchConfigList());
                break;

            case "JCZQ":
                var manager_JCZQ = new JCZQMatchManager();
                collection.AddRange(manager_JCZQ.QueryJCZQ_DisableMatchConfigList());
                break;

            case "JCLQ":
                var manager_JCLQ = new JCLQMatchManager();
                collection.AddRange(manager_JCLQ.QueryJCLQ_DisableMatchConfigList());
                break;

            default:
                break;
            }

            return(collection);
        }
 /// <summary>
 /// 加载竞彩足球比赛结果
 /// </summary>
 public static void LoadJCZQMatchResult()
 {
     //查询sql中近三天的比赛结果
     var manager = new JCZQMatchManager();
     var resultList = manager.QueryJCZQMatchResultByDay(-30);
     //写入redis库
     var json = JsonHelper.Serialize<List<EntityModel.C_JCZQ_MatchResult>>(resultList);
     var db = RedisHelper.DB_Match;
     var fullKey = string.Format("{0}_{1}", "JCZQ", RedisKeys.Key_MatchResult_List);
     db.StringSetAsync(fullKey, json);
 }