develop #1

Merged
zhangxiang merged 60 commits from develop into main 2026-04-05 10:28:15 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 04e385a0a2 - Show all commits
@@ -39,7 +39,7 @@ export class RoleAuthManager {
method.toUpperCase(), method.toUpperCase(),
path, path,
'', '',
body || '', '',
timestamp.toString(), timestamp.toString(),
nonce nonce
].join('\n'); ].join('\n');
+1 -1
View File
@@ -16,7 +16,7 @@ export function generateSignature(
timestamp: number, timestamp: number,
nonce: string nonce: string
): string { ): string {
const stringToSign = buildStringToSign(method, path, query, body, timestamp, nonce) const stringToSign = buildStringToSign(method, path, query, '', timestamp, nonce)
const signature = CryptoJS.HmacSHA256(stringToSign, SIGNATURE_SECRET) const signature = CryptoJS.HmacSHA256(stringToSign, SIGNATURE_SECRET)
const signatureBase64 = CryptoJS.enc.Base64.stringify(signature) const signatureBase64 = CryptoJS.enc.Base64.stringify(signature)