去除缓存,修改问题

This commit is contained in:
zpc 2025-02-21 22:13:07 +08:00
parent 37a3882929
commit 979ce890fd
3 changed files with 10 additions and 2 deletions

View File

@ -60,7 +60,7 @@ namespace CloudGaming.Api.Controllers
/// <param name="gameId"></param> /// <param name="gameId"></param>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[RedisCache(2, 2, 0)] //[RedisCache(2, 2, 0)]
public async Task<GameInfoDto> GetGameInfo([FromQuery] string gameId) public async Task<GameInfoDto> GetGameInfo([FromQuery] string gameId)
{ {
GameBLL gamebll = new GameBLL(this.ServiceProvider); GameBLL gamebll = new GameBLL(this.ServiceProvider);

View File

@ -94,7 +94,11 @@ namespace CloudGaming.Code.Cache.Special
var game = gameListDict[gameCbt.GameId]; var game = gameListDict[gameCbt.GameId];
var gameInfo = mapper.Map<GameInfo>(gameCbt); var gameInfo = mapper.Map<GameInfo>(gameCbt);
game.ToGameInfo(gameInfo); game.ToGameInfo(gameInfo);
//game.GameName
if (gameInfo.Title2 == null)
{
gameInfo.Title2 = "";
}
gameInfo.GameType = GetGameExtendedAttributes(gameChildList, gameCbt.GameId, 1, gameTypesDict); gameInfo.GameType = GetGameExtendedAttributes(gameChildList, gameCbt.GameId, 1, gameTypesDict);
gameInfo.GameTags = GetGameExtendedAttributes(gameChildList, gameCbt.GameId, 2, gameTagsDict); gameInfo.GameTags = GetGameExtendedAttributes(gameChildList, gameCbt.GameId, 2, gameTagsDict);
if (!gameUserShare.TryGetValue(gameCbt.GameId, out string NickName)) if (!gameUserShare.TryGetValue(gameCbt.GameId, out string NickName))

View File

@ -56,6 +56,10 @@ namespace CloudGaming.Code.Epg
{ {
epgInfo.SubTitle = gameInfo.Title2 ?? ""; epgInfo.SubTitle = gameInfo.Title2 ?? "";
} }
if (epgInfo.SubTitle == null || epgInfo.SubTitle == "null")
{
epgInfo.SubTitle = "";
}
if (epgCfg.ImageResStyle == 0) if (epgCfg.ImageResStyle == 0)
{ {
epgCfg.ImageResStyle = defaultImageStyle; epgCfg.ImageResStyle = defaultImageStyle;