diff --git a/Changes.md b/Changes.md index 98d526f7..5dc6f5d9 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,6 @@ +v2.8.2.1 +- 修复:不设置hash上传图片/文件到服务器后,桌面客户端会无限重复设置剪贴板 + v2.8.2 - 修复:服务端产生大量图片文件 - 变更:轮询间隔设置为0时在内部限制为0.5秒 diff --git a/build/macos/Info.plist b/build/macos/Info.plist index 64f5a20f..68d3c3a6 100644 --- a/build/macos/Info.plist +++ b/build/macos/Info.plist @@ -19,8 +19,8 @@ NSHighResolutionCapable CFBundleVersion - 0.7.3 + 0.7.3.1 CFBundleShortVersionString - 0.7.3 + 0.7.3.1 diff --git a/src/SyncClipboard.Core/Clipboard/Profile/FileProfile.cs b/src/SyncClipboard.Core/Clipboard/Profile/FileProfile.cs index 648ee23d..f37af5c6 100644 --- a/src/SyncClipboard.Core/Clipboard/Profile/FileProfile.cs +++ b/src/SyncClipboard.Core/Clipboard/Profile/FileProfile.cs @@ -106,7 +106,7 @@ protected virtual async Task CheckHash(string localPath, CancellationToken cance if (string.IsNullOrEmpty(existedMd5)) { Hash = downloadedMd5; - await (WebDav?.PutText(RemoteProfilePath, ToJsonString(), cancelToken) ?? Task.CompletedTask); + await WebDav!.PutJson(RemoteProfilePath, ToDto(), cancelToken); return; } diff --git a/src/SyncClipboard.Desktop/AppConfig.cs b/src/SyncClipboard.Desktop/AppConfig.cs index 219bd42e..acb03387 100644 --- a/src/SyncClipboard.Desktop/AppConfig.cs +++ b/src/SyncClipboard.Desktop/AppConfig.cs @@ -6,7 +6,7 @@ internal class AppConfig : IAppConfig { public string AppId => Env.AppId; public string AppStringId => "SyncClipboard.Desktop"; - public string AppVersion => "0.7.3"; + public string AppVersion => "0.7.3.1"; public string UpdateApiUrl => "https://api.github.com/repos/Jeric-X/SyncClipboard.Desktop/releases"; public string UpdateUrl => "https://github.com/Jeric-X/SyncClipboard.Desktop/releases/latest"; } diff --git a/src/SyncClipboard.Desktop/Changes.md b/src/SyncClipboard.Desktop/Changes.md index ed508a47..bd3bba03 100644 --- a/src/SyncClipboard.Desktop/Changes.md +++ b/src/SyncClipboard.Desktop/Changes.md @@ -1,3 +1,6 @@ +0.7.3.1 +- 修复:不设置hash上传图片/文件到服务器后,桌面客户端会无限重复设置剪贴板 + 0.7.3 - 修复:macOS Menu Bar图标在同步关闭状态下被裁切、颜色错误 diff --git a/src/SyncClipboard.Server.Core/Controller/SyncClipboardController.cs b/src/SyncClipboard.Server.Core/Controller/SyncClipboardController.cs index 0dcd5e21..dc099c36 100644 --- a/src/SyncClipboard.Server.Core/Controller/SyncClipboardController.cs +++ b/src/SyncClipboard.Server.Core/Controller/SyncClipboardController.cs @@ -9,8 +9,10 @@ public class SyncClipboardController { protected ClipboardProfileDTO? ProfileDtoCache = null; - private static async Task PutFile(HttpContext content, string rootPath, string path) + private async Task PutFile(HttpContext content, string rootPath, string path) { + ProfileDtoCache = null; + var pathFolder = Path.Combine(rootPath, "file"); if (!Directory.Exists(pathFolder)) { diff --git a/src/SyncClipboard.WinUI3/AppConfig.cs b/src/SyncClipboard.WinUI3/AppConfig.cs index 88073483..794ae451 100644 --- a/src/SyncClipboard.WinUI3/AppConfig.cs +++ b/src/SyncClipboard.WinUI3/AppConfig.cs @@ -6,7 +6,7 @@ internal class AppConfig : IAppConfig { public string AppId => Env.AppId; public string AppStringId => "SyncClipboard.WinUI"; - public string AppVersion => "2.8.2"; + public string AppVersion => "2.8.2.1"; public string UpdateApiUrl => "https://api.github.com/repos/Jeric-X/SyncClipboard/releases"; public string UpdateUrl => "https://github.com/Jeric-X/SyncClipboard/releases/latest"; }