diff --git a/src/CloudGaming/Api/CloudGaming.Api/Controllers/GameController.cs b/src/CloudGaming/Api/CloudGaming.Api/Controllers/GameController.cs index 09560c5..9653684 100644 --- a/src/CloudGaming/Api/CloudGaming.Api/Controllers/GameController.cs +++ b/src/CloudGaming/Api/CloudGaming.Api/Controllers/GameController.cs @@ -60,7 +60,7 @@ namespace CloudGaming.Api.Controllers /// /// [HttpGet] - [RedisCache(2, 2, 0)] + //[RedisCache(2, 2, 0)] public async Task GetGameInfo([FromQuery] string gameId) { GameBLL gamebll = new GameBLL(this.ServiceProvider); diff --git a/src/CloudGaming/Code/CloudGaming.Code/Cache/Special/GameEntityCache.cs b/src/CloudGaming/Code/CloudGaming.Code/Cache/Special/GameEntityCache.cs index 3a5a01c..ad3ea56 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Cache/Special/GameEntityCache.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Cache/Special/GameEntityCache.cs @@ -94,7 +94,11 @@ namespace CloudGaming.Code.Cache.Special var game = gameListDict[gameCbt.GameId]; var gameInfo = mapper.Map(gameCbt); game.ToGameInfo(gameInfo); - //game.GameName + + if (gameInfo.Title2 == null) + { + gameInfo.Title2 = ""; + } gameInfo.GameType = GetGameExtendedAttributes(gameChildList, gameCbt.GameId, 1, gameTypesDict); gameInfo.GameTags = GetGameExtendedAttributes(gameChildList, gameCbt.GameId, 2, gameTagsDict); if (!gameUserShare.TryGetValue(gameCbt.GameId, out string NickName)) diff --git a/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs b/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs index 61ddf34..96a07b2 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs @@ -56,6 +56,10 @@ namespace CloudGaming.Code.Epg { epgInfo.SubTitle = gameInfo.Title2 ?? ""; } + if (epgInfo.SubTitle == null || epgInfo.SubTitle == "null") + { + epgInfo.SubTitle = ""; + } if (epgCfg.ImageResStyle == 0) { epgCfg.ImageResStyle = defaultImageStyle;