From 62deb1e40ead6b74b3f9e3c9a1b955e422714c05 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Thu, 17 Mar 2022 22:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8AcoverDb.Close()=E5=92=8Cheade?= =?UTF-8?q?rDb.Close()=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi.Core/Storage/StorageCover.cs | 10 +++++----- DownKyi.Core/Storage/StorageHeader.cs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/DownKyi.Core/Storage/StorageCover.cs b/DownKyi.Core/Storage/StorageCover.cs index a1556aa..eb0a115 100644 --- a/DownKyi.Core/Storage/StorageCover.cs +++ b/DownKyi.Core/Storage/StorageCover.cs @@ -90,7 +90,7 @@ namespace DownKyi.Core.Storage }; coverDb.Update(newCover); - coverDb.Close(); + //coverDb.Close(); return $"{StorageManager.GetCover()}/{cover.Md5}"; } else @@ -108,12 +108,12 @@ namespace DownKyi.Core.Storage }; coverDb.Update(newCover); - coverDb.Close(); + //coverDb.Close(); return $"{StorageManager.GetCover()}/{md5}"; } else { - coverDb.Close(); + //coverDb.Close(); return null; } } @@ -133,12 +133,12 @@ namespace DownKyi.Core.Storage }; coverDb.Insert(newCover); - coverDb.Close(); + //coverDb.Close(); return $"{StorageManager.GetCover()}/{md5}"; } else { - coverDb.Close(); + //coverDb.Close(); return null; } } diff --git a/DownKyi.Core/Storage/StorageHeader.cs b/DownKyi.Core/Storage/StorageHeader.cs index 09a768a..a0d3077 100644 --- a/DownKyi.Core/Storage/StorageHeader.cs +++ b/DownKyi.Core/Storage/StorageHeader.cs @@ -73,7 +73,7 @@ namespace DownKyi.Core.Storage Md5 = header.Md5 }; headerDb.Update(newHeader); - headerDb.Close(); + //headerDb.Close(); return $"{StorageManager.GetHeader()}/{header.Md5}"; } else @@ -89,12 +89,12 @@ namespace DownKyi.Core.Storage Md5 = md5 }; headerDb.Insert(newHeader); - headerDb.Close(); + //headerDb.Close(); return $"{StorageManager.GetHeader()}/{md5}"; } else { - headerDb.Close(); + //headerDb.Close(); return null; } } @@ -112,12 +112,12 @@ namespace DownKyi.Core.Storage Md5 = md5 }; headerDb.Insert(newHeader); - headerDb.Close(); + //headerDb.Close(); return $"{StorageManager.GetHeader()}/{md5}"; } else { - headerDb.Close(); + //headerDb.Close(); return null; } }