예제 #1
0
        public Issuse_QueryInfo QueryCurrentNewIssuseInfo(string gameCode, string gameType)
        {
            var entity = new DataQuery().QueryCurrentNewIssuseInfo(gameCode, gameType);

            if (entity == null)
            {
                return(null);
            }
            var info = new Issuse_QueryInfo {
                Status = IssuseStatus.OnSale
            };

            ObjectConvert.ConverEntityToInfo <GameIssuse, Issuse_QueryInfo>(entity, ref info);
            var gameInfo = new GameInfo();

            gameInfo.GameCode = entity.GameCode;
            //ObjectConvert.ConverEntityToInfo<LotteryGame, GameInfo>(entity.Game, ref gameInfo);
            info.Game = gameInfo;
            return(info);
        }
예제 #2
0
        public APPConfigInfo QueryAppConfigByAgentId(string appAgentId)
        {
            if (string.IsNullOrEmpty(appAgentId))
            {
                appAgentId = "100000";
            }

            _AppConfigList = new DataQuery().QueryAppConfigList();
            var config = _AppConfigList.FirstOrDefault(p => p.AppAgentId == appAgentId);

            if (config == null)
            {
                var entity = new DataQuery().QueryAppConfigByAgentId(appAgentId);
                if (entity == null)
                {
                    throw new LogicException("未查询到下载地址");
                }
                config = new APPConfigInfo();
                ObjectConvert.ConverEntityToInfo(entity, ref config);
                _AppConfigList.Add(config);
            }
            return(config);
        }