This commit is contained in:
milimoe 2025-12-03 21:10:12 +08:00
parent bb8977eea7
commit 1693a48f8c
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0
2 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
using System.Text;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

View File

@ -237,7 +237,7 @@ namespace Oshima.FunGame.WebAPI
if (objs.Length > 0 && objs[0] is WebApplication app)
{
_serviceScopeFactory = app.Services.GetRequiredService<IServiceScopeFactory>();
Controller.WriteLine("获取到IServiceScopeFactory");
if (_serviceScopeFactory != null) Controller.WriteLine("获取到IServiceScopeFactory");
}
}