public static void SyncLocalAnd115FileStatus(string folder = "1834397846621504875", bool update115Maping = false) { var oneOneFiles = Get115FilesModel(folder); var localFiles = GetAllLocalAvs(); var localShaMapping = ScanDataBaseManager.GetAllLocalShaMapping(); if (oneOneFiles != null && oneOneFiles.Any()) { if (update115Maping) { Insert115FileSha(oneOneFiles); } //刷新本地sha,更新本地是否保存 foreach (var oneOneFive in oneOneFiles) { var matchedMapping = localShaMapping.FirstOrDefault(x => x.Sha1 == oneOneFive.sha); if (matchedMapping != null) { ScanDataBaseManager.UpdateOneOneFiveFileShaMapping(matchedMapping.Sha1, true); } } } }