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 [
"AccessKeyId": account.accessKeyId,
"Format": "JSON",
"SignatureMethod": "HMAC-SHA1",
"SignatureNonce": UUID().uuidString,
"SignatureVersion": "1.0",
"Timestamp": formatter.string(from: Date()),
"Version": "2017-03-21",
]
@@ -48,8 +48,19 @@ struct VideoListView: View {
.padding()
if let error = errorMessage {
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)
}