From 7d4f99ef99856c8f495a85103f9d7ea3095a316d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A3=8A?= Date: Sat, 19 Mar 2022 23:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E7=B4=A2=E5=BC=95=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TextLocator/Index/IndexCore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TextLocator/Index/IndexCore.cs b/TextLocator/Index/IndexCore.cs index 3f21725..3a33040 100644 --- a/TextLocator/Index/IndexCore.cs +++ b/TextLocator/Index/IndexCore.cs @@ -141,7 +141,7 @@ namespace TextLocator.Index { // 非重建 && 文件已经被索引过 bool isUpdate = !create; - bool isExists = !string.IsNullOrEmpty(AppUtil.ReadValue("FileIndex", MD5Util.GetMD5Hash(filePath), "")); + bool isExists = !string.IsNullOrEmpty(AppUtil.ReadValue("FileIndex", filePath, "")); if (isUpdate && isExists) { string skipMsg = "跳过文件:" + filePath; @@ -184,7 +184,7 @@ namespace TextLocator.Index string filePath = taskInfo.FilePath; // 写入已索引标记 - AppUtil.WriteValue("FileIndex", MD5Util.GetMD5Hash(filePath), "1"); + AppUtil.WriteValue("FileIndex", filePath, "1"); // 文件信息 FileInfo fileInfo = new FileInfo(filePath); -- Gitee