修复问题

This commit is contained in:
zpc 2024-11-10 18:29:29 +08:00
parent 09aa1ded73
commit 0e690bba7f
2 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,9 @@ using Microsoft.AspNetCore.Mvc;
namespace CloudGaming.Api.Controllers;
/// <summary>
/// 首页
/// </summary>
public class HomeController : CloudGamingControllerBase
{
public HomeController(IServiceProvider _serviceProvider) : base(_serviceProvider)

View File

@ -176,7 +176,11 @@ namespace CloudGaming.Code.Cache.Special
{
return null;
}
return GameInfoDic[gameId] ?? null;
if (GameInfoDic.TryGetValue(gameId, out var gameInfo))
{
return gameInfo;
}
return null;
}
}