fix: 修复 SignatureMethod 缺失导致 API 签名错误,错误信息增加复制按钮
CI / lint-and-build (push) Has been cancelled

This commit is contained in:
2026-06-30 09:11:57 +06:00
parent f86d4c9826
commit 8fc1626e63
2 changed files with 16 additions and 3 deletions
@@ -45,7 +45,9 @@ actor VODClient {
return [ return [
"AccessKeyId": account.accessKeyId, "AccessKeyId": account.accessKeyId,
"Format": "JSON", "Format": "JSON",
"SignatureMethod": "HMAC-SHA1",
"SignatureNonce": UUID().uuidString, "SignatureNonce": UUID().uuidString,
"SignatureVersion": "1.0",
"Timestamp": formatter.string(from: Date()), "Timestamp": formatter.string(from: Date()),
"Version": "2017-03-21", "Version": "2017-03-21",
] ]
@@ -48,9 +48,20 @@ struct VideoListView: View {
.padding() .padding()
if let error = errorMessage { if let error = errorMessage {
Text(error) HStack {
.foregroundStyle(.red) Text(error)
.padding(.horizontal) .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) { Table(of: VideoItem.self, selection: $selectedVideos) {