接口过滤器增加释放数据库连接

This commit is contained in:
2025-01-06 17:27:08 +08:00
parent bc45dce29e
commit a40025fb73
2 changed files with 2 additions and 1 deletions
@@ -95,6 +95,7 @@ namespace WebAPI.Filter
{
if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
{
BLL.Funs.DBList[System.Threading.Thread.CurrentThread.ManagedThreadId].Dispose();
BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId);
}