From 8fc1626e634f6e5a9c23f91080d40dd646d6a75a Mon Sep 17 00:00:00 2001 From: William Date: Tue, 30 Jun 2026 09:11:57 +0600 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20SignatureMethod=20?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E5=AF=BC=E8=87=B4=20API=20=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=8D=E5=88=B6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/VODManager/Services/VODClient.swift | 2 ++ .../VODManager/Views/VideoListView.swift | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/apps/macos/VODManager/Sources/VODManager/Services/VODClient.swift b/apps/macos/VODManager/Sources/VODManager/Services/VODClient.swift index 42ca901..746968d 100644 --- a/apps/macos/VODManager/Sources/VODManager/Services/VODClient.swift +++ b/apps/macos/VODManager/Sources/VODManager/Services/VODClient.swift @@ -45,7 +45,9 @@ actor VODClient { return [ "AccessKeyId": account.accessKeyId, "Format": "JSON", + "SignatureMethod": "HMAC-SHA1", "SignatureNonce": UUID().uuidString, + "SignatureVersion": "1.0", "Timestamp": formatter.string(from: Date()), "Version": "2017-03-21", ] diff --git a/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift b/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift index d6691f9..9a9b444 100644 --- a/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift +++ b/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift @@ -48,9 +48,20 @@ struct VideoListView: View { .padding() if let error = errorMessage { - Text(error) - .foregroundStyle(.red) - .padding(.horizontal) + HStack { + Text(error) + .foregroundStyle(.red) + Button { + NSPasteboard.general.clearContents() + NSPasteboard.general.setString(error, forType: .string) + } label: { + Image(systemName: "doc.on.doc") + } + .buttonStyle(.borderless) + .help("复制错误信息") + Spacer() + } + .padding(.horizontal) } Table(of: VideoItem.self, selection: $selectedVideos) {