去除缓存,修改问题
This commit is contained in:
parent
37a3882929
commit
979ce890fd
|
|
@ -60,7 +60,7 @@ namespace CloudGaming.Api.Controllers
|
|||
/// <param name="gameId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[RedisCache(2, 2, 0)]
|
||||
//[RedisCache(2, 2, 0)]
|
||||
public async Task<GameInfoDto> GetGameInfo([FromQuery] string gameId)
|
||||
{
|
||||
GameBLL gamebll = new GameBLL(this.ServiceProvider);
|
||||
|
|
|
|||
|
|
@ -94,7 +94,11 @@ namespace CloudGaming.Code.Cache.Special
|
|||
var game = gameListDict[gameCbt.GameId];
|
||||
var gameInfo = mapper.Map<GameInfo>(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))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user