修复问题
This commit is contained in:
parent
09aa1ded73
commit
0e690bba7f
|
|
@ -8,6 +8,9 @@ using Microsoft.AspNetCore.Mvc;
|
|||
|
||||
namespace CloudGaming.Api.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 首页
|
||||
/// </summary>
|
||||
public class HomeController : CloudGamingControllerBase
|
||||
{
|
||||
public HomeController(IServiceProvider _serviceProvider) : base(_serviceProvider)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user